Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a9719e

Browse files
committed
Allow error query to start transaction in autocommit off mode.
1 parent3bb7e1e commit9a9719e

File tree

1 file changed

+5
-2
lines changed
  • src/backend/access/transam

1 file changed

+5
-2
lines changed

‎src/backend/access/transam/xact.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.143 2003/03/14 22:40:31 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.144 2003/03/21 04:33:15 momjian Exp $
1212
*
1313
* NOTES
1414
*Transaction aborts can now occur two ways:
@@ -1341,7 +1341,10 @@ AbortCurrentTransaction(void)
13411341
*/
13421342
caseTBLOCK_DEFAULT:
13431343
AbortTransaction();
1344-
CleanupTransaction();
1344+
if (autocommit||suppressChain)
1345+
CleanupTransaction();
1346+
else
1347+
s->blockState=TBLOCK_ABORT;
13451348
break;
13461349

13471350
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp