Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1FF97634024 for ; Fri, 20 Nov 2009 10:39:38 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 50402-05 for ; Fri, 20 Nov 2009 14:39:29 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 4166D633DA5 for ; Fri, 20 Nov 2009 10:39:29 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id nAKEdLZd021321; Fri, 20 Nov 2009 09:39:21 -0500 (EST) To: "Marvelde, Luc te" cc: pgsql-sql@postgresql.org Subject: Re: Sqldf - error message In-reply-to: <1276C0564833F043AB4C85ED8DA9CFE502AF054F@ctemail1.nioo.int> References: <1276C0564833F043AB4C85ED8DA9CFE502AF054F@ctemail1.nioo.int> Comments: In-reply-to "Marvelde, Luc te" message dated "Fri, 20 Nov 2009 15:18:33 +0100" Date: Fri, 20 Nov 2009 09:39:21 -0500 Message-ID: <21320.1258727961@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200911/63 X-Sequence-Number: 33414 "Marvelde, Luc te" 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