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 497E79DC807 for ; Fri, 17 Feb 2006 07:54:17 -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 10989-07 for ; Fri, 17 Feb 2006 07:54:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from smtp.pzkagis.cz (gis6.netbox.cz [83.240.30.214]) by postgresql.org (Postfix) with ESMTP id E454D9DC863 for ; Fri, 17 Feb 2006 07:54:14 -0400 (AST) Received: from soptik.pzkagis.cz (localhost.localdomain [127.0.0.1]) by smtp.pzkagis.cz (8.13.1/8.13.1) with ESMTP id k1HBruIg025976; Fri, 17 Feb 2006 12:53:56 +0100 Received: (from luf@localhost) by soptik.pzkagis.cz (8.13.1/8.13.1/Submit) id k1HBrt9G025975; Fri, 17 Feb 2006 12:53:55 +0100 Date: Fri, 17 Feb 2006 12:53:55 +0100 From: Ludek Finstrle To: Michael Shulman Cc: pgsql-odbc@postgresql.org Subject: Re: psqlODBC generating incorrect SQL? Message-ID: <20060217115355.GA25896@soptik.pzkagis.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: ClamAV 0.88/1292/Fri Feb 17 10:39:02 2006 on smtp.pzkagis.cz X-Virus-Status: Clean X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.093 required=5 tests=[AWL=0.093] X-Spam-Score: 0.093 X-Spam-Level: X-Archive-Number: 200602/85 X-Sequence-Number: 7214 > 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: It seems to me that psqlODBC means it is another type. > UPDATE "public"."application" SET "decision"=? WHERE ... It uses binding parameters. Nothing new. I don't know what leads to the problem. > 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. Maybe driver or something another doesn't work correctly. What's the decision column type? > 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! It could be interesting to see mylog outputs (from your computer - the correct one and from user's comupter - the faulty one). Maybe you don't have same connection options. Are you both using same psqlODBC driver (version ant type - ANSI vs. Unicode)? And what about backends, ...? Regards, Luf