| From: | Christof Petig <christof(at)petig-baender(dot)de> |
|---|---|
| To: | Chamanya <chamanya(at)yahoo(dot)com> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Trans-transactions cursors |
| Date: | 2001-09-18 12:05:03 |
| Message-ID: | 3BA7386F.433DF899@petig-baender.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Chamanya wrote:
> I am currently building a small web based app, with postgres as back end. I
> found that in ecpg you can declare and use cursor without declaring a
> transaction. In several places I have used cursors for selects only. That's
> the only way I found to make ecpg fetch multiple rows.
>
> And in ecpg I have to give an explicit open cursor statement to make fetching
> possible.
That's simply because ecpg starts a new transaction on any SQL statement if no
transaction is active.
I consider this (autocommit on) one of the worst traps you can lay for yourself.
Christof
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Marc G. Fournier | 2001-09-18 12:14:03 | Re: CVS access problem |
| Previous Message | D'Arcy J.M. Cain | 2001-09-18 11:25:52 | Re: Major change to CVS effective immediately ... |