forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita6c7681
committed
This patch changes the behavior of PostgreSQL so that if any queries are
executed in an implicitely aborted transaction (e.g. after an occuroccurs), we return an error (and not just a warning). For example:nconway=# begin;BEGINnconway=# insert; -- syntax errorERROR: parser: parse error at or near ";"nconway=# select * from a;ERROR: current transaction is aborted, queries ignored until end oftransaction blockThe old behavior was:nconway=# begin;BEGINnconway=# insert;ERROR: parser: parse error at or near ";"nconway=# select * from a;WARNING: current transaction is aborted, queries ignored until endof transaction block*ABORT STATE*Which can be confusing: if the client isn't paying careful attention,they will conclude that the query has executed (because no error isreturned).Neil Conway1 parent5df307c commita6c7681
1 file changed
+5
-30
lines changedLines changed: 5 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
| |||
648 | 648 |
| |
649 | 649 |
| |
650 | 650 |
| |
651 |
| - | |
652 |
| - | |
653 |
| - | |
654 |
| - | |
655 |
| - | |
656 |
| - | |
657 |
| - | |
658 |
| - | |
659 |
| - | |
| 651 | + | |
| 652 | + | |
660 | 653 |
| |
661 | 654 |
| |
662 | 655 |
| |
663 |
| - | |
664 |
| - | |
| 656 | + | |
665 | 657 |
| |
666 |
| - | |
667 |
| - | |
668 |
| - | |
669 |
| - | |
670 |
| - | |
671 |
| - | |
672 |
| - | |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 |
| - | |
681 |
| - | |
682 |
| - | |
683 | 658 |
| |
684 | 659 |
| |
685 | 660 |
| |
| |||
1701 | 1676 |
| |
1702 | 1677 |
| |
1703 | 1678 |
| |
1704 |
| - | |
| 1679 | + | |
1705 | 1680 |
| |
1706 | 1681 |
| |
1707 | 1682 |
| |
|
0 commit comments
Comments
(0)