From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Bill Moran <wmoran(at)potentialtech(dot)com> |
Cc: | Cornelia Boenigk <poppcorn(at)cornelia-boenigk(dot)de>, pgsql-general(at)postgresql(dot)org |
Subject: | Re: problem with cursur within a scriptfile |
Date: | 2004-02-22 21:54:27 |
Message-ID: | 18863.1077486867@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
Bill Moran <wmoran(at)potentialtech(dot)com> writes:
> Cornelia Boenigk wrote:
>> BEGIN;
>> SELECT cursorname(`test`,`username`,`searchphrase`);
>> MOVE 10 in test;
>> FETCH 25 from test;
>> COMMIT;
>>
>> inside psql everything works well. If I put this code into a
>> scriptfile and call it, I get the following errormessage:
>>
>> cannot handle multiple result groups
> Sure seems like whatever database client you're using doesn't really
> support transactions.
I'm guessing that the client-side library thinks the above is a single
SQL statement, and so it's surprised when two result sets (the SELECT
and then the FETCH) come back. This is probably due to misuse of the
library API, but without any details it's hard to offer advice.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Cornelia Boenigk | 2004-02-22 23:10:52 | Re: problem with cursur within a scriptfile |
Previous Message | Gyorgy Molnar | 2004-02-22 21:11:16 | System tuning |
From | Date | Subject | |
---|---|---|---|
Next Message | Cornelia Boenigk | 2004-02-22 23:10:52 | Re: problem with cursur within a scriptfile |
Previous Message | Gyorgy Molnar | 2004-02-22 21:11:16 | System tuning |