pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jarosław Jankowski <Jarek@Janko-Soft.com>
To: pgsql-odbc@postgresql.org
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> (raw)

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.




Message-ID: <000001c331c1$401f7b40$fd01a8c0@JS.JS>
Permalink:  ../000001c331c1$401f7b40$fd01a8c0@JS.JS/
Also on:    postgresql.org/message-id/000001c331c1$401f7b40$fd01a8c0@JS.JS

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: Jarek@Janko-Soft.com
  Subject: Re: PostgreSQL ODBC driver error when returnning more than one query (wiht Visual Foxpro)
  In-Reply-To: <000001c331c1$401f7b40$fd01a8c0@JS.JS>
  References: <000001c331c1$401f7b40$fd01a8c0@JS.JS>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox