Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id C76129FB7F1 for ; Wed, 8 Aug 2007 14:14:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 96395-06 for ; Wed, 8 Aug 2007 14:14:10 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from floppy.pyrenet.fr (floppy.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id DACC69FB200 for ; Wed, 8 Aug 2007 14:14:10 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id C0A6231418; Wed, 8 Aug 2007 19:14:08 +0200 (MET DST) From: "lothar.behrens@lollisoft.de" X-Newsgroups: pgsql.interfaces.odbc Subject: UPDATE with data at exec and CURRENT OF question Date: Wed, 08 Aug 2007 10:14:04 -0700 Organization: http://groups.google.com Lines: 31 Message-ID: <1186593244.173056.317630@q75g2000hsh.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; de-de) AppleWebKit/312.8.1 (KHTML, like Gecko) Safari/312.6,gzip(gfe),gzip(gfe) X-HTTP-Via: 1.1 jedi.behrens.de:3128 (squid/2.5.STABLE5) Complaints-To: groups-abuse@google.com Injection-Info: q75g2000hsh.googlegroups.com; posting-host=87.180.75.26; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 To: pgsql-odbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200708/14 X-Sequence-Number: 9131 Hi, after all my tries I ran into trouble with this statement: UPDATE "Kontakte" set "Notiz" = ? WHERE CURRENT OF SQL_CUR0x1321f670 I see that my parameter has been passed. And the driver has build up the query. But I do not understand, why there is a syntax error near the 'OF' keyword. Does PostgreSQL not support this syntax ? Thanks, Lothar Exec_with_parameters_resolved: copying statement params: trans_status=1, len=68, stmt='UPDATE "Kontakte" set "Notiz" = ? WHERE CURRENT OF SQL_CUR0x1321f670' ResolveOneParam: from(fcType)=-2, to(fSqlType)=-4 SQL_VARBINARY: about to call convert_to_pgbinary, used = 4 convert_to_pgbinary: in[0] = 76, L convert_to_pgbinary: in[1] = 97, a convert_to_pgbinary: in[2] = 108, l convert_to_pgbinary: in[3] = 97, a convert_to_pgbinary: returning 4, out='Lala' stmt_with_params = 'UPDATE "Kontakte" set "Notiz" = 'Lala' WHERE CURRENT OF SQL_CUR0x1321f670' it's NOT a select statement: stmt=321250656 send_query(): conn=25601024, query='UPDATE "Kontakte" set "Notiz" = 'Lala' WHERE CURRENT OF SQL_CUR0x1321f670' send_query: done sending query