X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (developer.postgresql.org [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id A4091924AED for ; Sat, 24 May 2003 09:26:57 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 16396-09 for ; Sat, 24 May 2003 09:26:26 -0400 (EDT) Received: from mail.bacchus.com.au (unknown [203.22.71.65]) by developer.postgresql.org (Postfix) with ESMTP id 83ADF9234D7 for ; Sat, 24 May 2003 09:26:25 -0400 (EDT) Received: from localhost ([203.185.231.74]) by mail.bacchus.com.au (8.12.8/8.12.8) with SMTP id h4ODQMbv002011 for ; Sat, 24 May 2003 23:26:24 +1000 Message-Id: <200305241326.h4ODQMbv002011@mail.bacchus.com.au> Date: Sat, 24 May 2003 23:26:19 +1000 To: pgsql-odbc@postgresql.org From: "Wayne Armstrong" Reply-To: "Wayne Armstrong" In-Reply-To: <20030214210954.62541.qmail@web20803.mail.yahoo.com> References: <20030214210954.62541.qmail@web20803.mail.yahoo.com> Subject: Problem with backend prepare usin MIME-Version: 1.0 X-Mailer: The Polarbar Mailer; version=1.25a; build=1965 X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/54 X-Sequence-Number: 2954 Hi, I've been trying to get my app to work using the server side prepare option in the odbc driver. I't dies on the first query - with SQLSTATE=07009 - Invalid column number in DescribeCol. [Native Error=13]] The query being issued is :- 'select current_user as x, current_timestamp as y, current_database() as z'. The logs from the server look good :- 2003-05-24 23:15:06 [1541] LOG: query: BEGIN;PREPARE _PLAN1202048 as select urrent_user as x, current_timestamp as y, current_database() as z;EXECUTE _PLAN 202048 2003-05-24 23:15:06 [1541] LOG: duration: 0.009996 sec 2003-05-24 23:15:06 [1541] LOG: query: COMMIT 2003-05-24 23:15:06 [1541] LOG: duration: 0.001244 sec Has anyone tried this? got it to work? Is it really part of this release (compiled from source current from the cvs as at 2003-05-24)? or should I just ignore it for now? Regards, Wayne