pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jon V <jon@cecorp.com>
To: pgsql-odbc@postgresql.org
Subject: Help! Version/behavior quirks.
Date: Wed, 29 Jan 2003 06:26:05 -0800
Message-ID: <3E37E47D.4070809@cecorp.com> (raw)

I asked this in the pgsql-novice list and was directed here. Hopefully 
some of you have seen this problem before....

Here's the story....  We have a product that was developed for MsSQL. We 
are changing (or trying to change) over to PostgreSQL in an ongoing 
effort to get away from MS products. We have one workstation that this 
port was done on, and we are now trying to deploy on other machines.

Environment is pg under cygwin, odbc, and for this test pgadmin II.

On the development/test machine (pg 7.2.3, odbc 7.1.9, pgadmin 1.2.0), 
you can put a query inside begin/end statements and get the results. e.g.

begin;
select * from table_name;
end;

returns the table contents.

We have several other machines, running various combinations, e.g.
pg 7.3.1, odbc 7.2.5, pgadmin 1.4.12
pg 7.2.1, odbc 7.2.3, pgadmin 1.2.0

and using the same SQL with those we just get a "query OK" message. It 
obviously does the query (I can put a delete from... within the 
begin/commit and it deletes), but it doesn't display the results.

Which behavior is "right", and is there something we can do to see the 
results?

?Additionally? our application has a function that returns a cursor with 
a result set. This works with the first system (the development system 
this was coded on) but we can't get a similar behavior to work on the 
platform we want to deploy/develop on now.  This is actually the first 
problem that we ran into and we discovered the query-within-transaction 
behavior difference in trying to troubleshoot that.

Alternatively, is there another way to return a set of rows/columns from 
a function? The MsSQL app had a stored procedure that returned several 
results all at once. This was no problem in MsSQL, where a stored 
procedure can return a table structure without any special code, but 
seems to require explicit cursor use in postgresql?

Thanks in advance!

-Jon




view thread (2+ messages)  latest in thread

Message-ID: <3E37E47D.4070809@cecorp.com>
Permalink:  ../3E37E47D.4070809@cecorp.com/
Also on:    postgresql.org/message-id/3E37E47D.4070809@cecorp.com

 · 

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: jon@cecorp.com
  Subject: Re: Help! Version/behavior quirks.
  In-Reply-To: <3E37E47D.4070809@cecorp.com>
  References: <3E37E47D.4070809@cecorp.com>

* 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