Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5FA17633389 for ; Thu, 8 Oct 2009 08:08:48 -0300 (ADT) 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 94006-04 for ; Thu, 8 Oct 2009 11:08:40 +0000 (UTC) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by mail.postgresql.org (Postfix) with ESMTP id A54B56327D4 for ; Thu, 8 Oct 2009 08:08:40 -0300 (ADT) Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by pgfoundry.org (Postfix) with ESMTP id 472441071E02 for ; Thu, 8 Oct 2009 11:08:39 +0000 (UTC) Received: from pgfoundry.org ([200.46.204.130]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 94007-07; Thu, 8 Oct 2009 11:08:32 +0000 (UTC) Received: by pgfoundry.org (Postfix, from userid 80) id 58D261071DFE; Thu, 8 Oct 2009 11:08:31 +0000 (UTC) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1010713 ] Bug with datatype lo and server side cursor Content-type: text/plain; charset=UTF-8 Message-Id: <20091008110831.58D261071DFE@pgfoundry.org> Date: Thu, 8 Oct 2009 11:08:31 +0000 (UTC) X-Virus-Scanned: Maia Mailguard 1.0.1 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: 200910/8 X-Sequence-Number: 10033 Bugs item #1010713, was opened at 2009-10-06 17:21 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010713&group_id=1000125 Category: None Group: None Status: Open Resolution: None Priority: 3 Submitted By: Roel Claessen (xillion) Assigned to: Nobody (None) Summary: Bug with datatype lo and server side cursor Initial Comment: Since the latest version of our application we switched from clientside to serverside cursor. Everything works fine except for tables that have a lo field. Since we use serverside cursors we can't post any data to the table in the lo field. It seems like the ODBC driver is generating the wrong query and is inserting the blob content directly, without quoting, into the update query. We have the following configuration: PostgreSQL version: PostgreSQL 8.3.7 on Debian 4.3.2-1.1 ODBC driver: PostgreSQL Unicode 8.03.04.00 (also tested with version 8.04.01.00) Connectionstring: Provider=MSDASQL.1; Extended Properties="DRIVER={PostgreSQL Unicode}; DATABASE=dbname; SERVER=192.168.1.120; PORT=5432; READONLY=0; PROTOCOL=7.4+; FAKEOIDINDEX=0; SHOWOIDCOLUMN=0; ROWVERSIONING=0; SHOWSYSTEMTABLES=0; CONNSETTINGS=SET CLIENT_ENCODING TO 'LATIN1'; FETCH=100; SOCKET=4096; UNKNOWNSIZES=Longest; MAXVARCHARSIZE=254; TrueIsMinus1=1; UpdatableCursors=1; CACHESIZE=100; MAXLONGVARCHARSIZE=-4; OPTIMIZER=1; KSQO=1; USEDECLAREFETCH=0; TEXTASLONGVARCHAR=1; UNKNOWNSASLONGVARCHAR=1; BOOLSASCHAR=0; PARSE=0; CANCELASFREESTMT=0; EXTRASYSTABLEPREFIXES=dd_"; LFConversion=1; DisallowPremature=0; BI=0; DEBUG=0; COMMLOG=0; ---------------------------------------------------------------------- >Comment By: Roel Claessen (xillion) Date: 2009-10-08 13:08 Message: Hello Hiroshi, Thank you for your quick response. I have attached the requested file. Regards, Roel Claessen. ---------------------------------------------------------------------- Comment By: Hiroshi Inoue (hinoue) Date: 2009-10-07 13:51 Message: Could you attach the Mylog output of the failures ? regards, Hiroshi Inoue ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1010713&group_id=1000125