X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 9107330EC1B for ; Fri, 13 Jun 2003 15:35:07 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 52847-02 for ; Fri, 13 Jun 2003 12:34:57 -0300 (ADT) Received: from wnetrz.com.pl (k61.smtp.com.pl [194.42.46.7]) by svr1.postgresql.org (Postfix) with ESMTP id 7493630EBF6 for ; Fri, 13 Jun 2003 12:34:55 -0300 (ADT) Received: from js1 (wc160.neoplus.adsl.tpnet.pl [80.50.148.160]) (authenticated) by wnetrz.com.pl (ESMTP) with ESMTP id h5DFYl522561 for ; Fri, 13 Jun 2003 17:34:48 +0200 From: =?iso-8859-2?Q?Jaros=B3aw_Jankowski?= To: Subject: PostgreSQL ODBC driver error when returnning more than one query (wiht Visual Foxpro) Date: Fri, 13 Jun 2003 17:34:07 +0200 Message-ID: <000001c331c1$401f7b40$fd01a8c0@JS.JS> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200306/32 X-Sequence-Number: 3006 I have PostgreSQL 7.3.1 on Cygwin, ODBC driver 7.03.01.00 and Visual Foxpro 7.0. When I calling function in VFP: _SQLREZ = SQLExec(_SQLCH,"SELECT * FROM oper; SELECT * FROM oper_grp;","oper") then in table "oper" have 4 rows and in table "oper1" have 2 rows (wrong), but in 'psql' (running on server) command: SELECT * FROM oper_grp; return 7 rows, and this is correct. Information from psqlodbc_???.log: conn=39006000, query='SELECT * FROM oper; SELECT * FROM oper_grp;' [ fetched 4 rows ] [ fetched 7 rows ] When I test other "double" queries retuning variable rows i see: Query from 2th SELECT produce incorrect number rows. Always is omited first # rows (# = first SELECT number rows + 1). When 2th SELECT produce less rows than is in first SELECT + 1 then table is empty (no any rows, but columns in table is correct). When I check in ODBC Setup -> DataSource -> "Use DECLARE/FETCH" then 2th Query is not execute. Command return only one result. When I check in ODBC Setup -> DataSource -> "Parse Statements" then table schema of 2th returned table is just the sam as first table and have no rows or VFP carsh. What I do wrong? Jaroslaw Jankowski Warsaw, Poland.