Re: Sqldf - error message

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Marvelde, Luc te" <L(dot)teMarvelde(at)nioo(dot)knaw(dot)nl>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Sqldf - error message
Date: 2009-11-20 14:39:21
Message-ID: 21320.1258727961@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Marvelde, Luc te" <L(dot)teMarvelde(at)nioo(dot)knaw(dot)nl> writes:
> If I run this SQL query:

>> sqldf("SELECT
> + dbo_tbl_Terrein.RingCentraleNaam,
> + dbo_tbl_Broedsels.BroedselID
> + FROM ((dbo_tbl_BroedselLocatie
> + INNER JOIN dbo_tbl_Broedsels ON dbo_tbl_BroedselLocatie.BroedselID =
> dbo_tbl_Broedsels.BroedselID)
> + INNER JOIN dbo_tbl_Nestkasten ON dbo_tbl_BroedselLocatie.NestkastID =
> dbo_tbl_Nestkasten.NestkastID)
> + INNER JOIN dbo_tbl_Terrein ON dbo_tbl_Nestkasten.TerreinNummer =
> dbo_tbl_Terrein.TerreinNummer
> + WHERE (((dbo_tbl_Terrein.RingCentraleNaam)='Oosterhout a/d Waal'));")

> I get the following message:

> Error in sqliteExecStatement(con, statement, bind.data) :
> RS-DBI driver: (error in statement: no such column:
> dbo_tbl_Broedsels.BroedselID)

It looks to me like sqldf is unaware of the rules about identifier
case-folding in Postgres. That column would come back named
"broedselid", but it's probably looking for "BroedselID".
Or possibly it's expecting the qualifier "dbo_tbl_Broedsels."
to be included in the returned column name. Either way, you
need to bug sqldf's authors to fix it.

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Pavel Stehule 2009-11-20 14:42:13 Re: Sqldf - error message
Previous Message Pavel Stehule 2009-11-20 14:37:56 Re: Sqldf - error message