pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marvelde, Luc te <L.teMarvelde@nioo.knaw.nl>
Cc: pgsql-sql@postgresql.org
Subject: Re: Sqldf - error message
Date: Fri, 20 Nov 2009 09:39:21 -0500
Message-ID: <21320.1258727961@sss.pgh.pa.us> (raw)
In-Reply-To: <1276C0564833F043AB4C85ED8DA9CFE502AF054F@ctemail1.nioo.int>
References: <1276C0564833F043AB4C85ED8DA9CFE502AF054F@ctemail1.nioo.int>

"Marvelde, Luc te" <L.teMarvelde@nioo.knaw.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



view thread (9+ messages)  latest in thread

Message-ID: <21320.1258727961@sss.pgh.pa.us>
Permalink:  ../21320.1258727961@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/21320.1258727961@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, L.teMarvelde@nioo.knaw.nl
  Subject: Re: Sqldf - error message
  In-Reply-To: <21320.1258727961@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox