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 536E29DC848 for ; Wed, 18 Jan 2006 06:19:52 -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 09784-06 for ; Wed, 18 Jan 2006 06:19:53 -0400 (AST) Received: from pgfoundry.org (pgfoundry.org [200.46.204.130]) by postgresql.org (Postfix) with ESMTP id 1A54A9DC80F for ; Wed, 18 Jan 2006 06:19:50 -0400 (AST) Received: from localhost (av.hub.org [200.46.204.144]) by pgfoundry.org (Postfix) with ESMTP id 4895E1033E60; Wed, 18 Jan 2006 10:19:53 +0000 (GMT) Received: from pgfoundry.org ([200.46.204.130]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 08355-10; Wed, 18 Jan 2006 06:19:51 -0400 (AST) Received: by pgfoundry.org (Postfix, from userid 80) id 2DA1C1033E19; Wed, 18 Jan 2006 10:19:51 +0000 (GMT) To: noreply@pgfoundry.org From: Subject: [ psqlodbc-Bugs-1000488 ] Dollar quoting and '?' in string cause unexpected error. Content-type: text/plain; charset=UTF-8 Message-Id: <20060118101951.2DA1C1033E19@pgfoundry.org> Date: Wed, 18 Jan 2006 10:19:51 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=-0.713 required=5 tests=[ALL_TRUSTED=-1.44, AWL=0.177, NO_REAL_NAME=0.55] X-Spam-Score: -0.713 X-Spam-Level: X-Archive-Number: 200601/172 X-Sequence-Number: 6987 Bugs item #1000488, was opened at 2005-12-16 15:31 You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000488&group_id=1000125 Category: None Group: None >Status: Closed Resolution: Postponed Priority: 3 Submitted By: Nobody (None) Assigned to: Nobody (None) Summary: Dollar quoting and '?' in string cause unexpected error. Initial Comment: Trying a command like the following one on VB5: CurrentConnection.Execute "update mytable set myfield=$_$?$_$;", lAffected I got this error: The # of binded parameters < the # of parameter markers The error seems caused by a '?' anywhere in the string, when using dollar quoting. If I escape the '?', like: CurrentConnection.Execute "update mytable set myfield=$_$\?$_$;", lAffected the command works, but the field in the table will contain '\?'. I'm using psqlodbc-08_01_0102 on a Windows 2003 server, with postgresql 8.0.3 on a Ubuntu Linux box. ---------------------------------------------------------------------- >Comment By: Dave Page (dpage) Date: 2006-01-18 10:19 Message: Bug closed - this is not a bug, but unsupported use of the driver. ---------------------------------------------------------------------- Comment By: Ludek Finstrle (luf) Date: 2005-12-17 23:11 Message: psqlODBC driver doesn't support dollar quoting yet. '?' is character for binding parameters so this is the core of the problem. I don't know when someone write support for this feature. ---------------------------------------------------------------------- You can respond by visiting: http://pgfoundry.org/tracker/?func=detail&atid=538&aid=1000488&group_id=1000125