X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BBC0B9DC862 for ; Thu, 16 Feb 2006 22:35:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00948-01 for ; Thu, 16 Feb 2006 22:35:18 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.197]) by postgresql.org (Postfix) with ESMTP id 3A8679DC83D for ; Thu, 16 Feb 2006 22:35:12 -0400 (AST) Received: by nproxy.gmail.com with SMTP id a4so209884nfc for ; Thu, 16 Feb 2006 18:35:16 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KAQ7FxgQFbisqVgw4z0Urx197VoxPAaOuuIzBgGBwJ98Cb2o3fqBdPgAW3Vh5HENtwNF8IEOl2B9rtR+o/elC+/44icKRx5jSv0MUCx9PPvfDgBZvhno9eMWDhIfUorcPCG139wOHCRiQpmVgAj8O0+L/+IpJw9LgWeptaN4m3Y= Received: by 10.49.8.11 with SMTP id l11mr327151nfi; Thu, 16 Feb 2006 18:35:16 -0800 (PST) Received: by 10.48.210.16 with HTTP; Thu, 16 Feb 2006 18:35:16 -0800 (PST) Message-ID: Date: Thu, 16 Feb 2006 20:35:16 -0600 From: "Michael Shulman" To: pgsql-odbc@postgresql.org Subject: psqlODBC generating incorrect SQL? MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200602/83 X-Sequence-Number: 7212 Hi, Can anyone think of a reason that the windows psqlODBC driver would generate SQL that doesn't quote strings correctly? I am seeing lines in psqlodbc_xxxx.log that begin like: conn=3D160249744, query=3D'UPDATE "public"."application" SET "decision"=3DAccepted WHERE... There is no column in my table called Accepted; that is a text string that I tried to set the field "decision" equal to. But somehow it didn't get quoted when it was put into the SQL, producing many error messages like 'column "accepted" does not exist'. I'm using MS Access, so possibly the problem is there; I don't know enough about ODBC to say. However, psqlodbc_xxxx.log tells me that the sql statement was constructed from one looking like UPDATE "public"."application" SET "decision"=3D? WHERE ... by filling in parameters, so it seems to me that it is the driver that is at fault, since it must have filled in the parameters. I'm very confused about how this could be happening. It doesn't happen on my computer, only on one of my users' computers, running the latest version of psqlODBC in Windows XP. Any suggestions would be greatly appreciated! Thanks, Mike