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

Commitba61a04

Browse files
committed
Avoid core dump for empty prepared statement in an aborted transaction.
Brown-paper-bag bug in commitab1f0c8: the old code here coped withnull CachedPlanSource.raw_parse_tree, the new code not so much.Per report from Dave Cramer.No regression test, because our core testing infrastructure doesn'tprovide any easy way to exercise this path. Fortunately, the JDBCcrew test it regularly.Discussion:https://postgr.es/m/CADK3HH+Ug3xCysKqw_dZOnaNnytZ1Rh5yP05hjO-e4NoyRxVvA@mail.gmail.com
1 parentd479e37 commitba61a04

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/tcop/postgres.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1559,7 +1559,8 @@ exec_bind_message(StringInfo input_message)
15591559
* functions.
15601560
*/
15611561
if (IsAbortedTransactionBlockState()&&
1562-
(!IsTransactionExitStmt(psrc->raw_parse_tree->stmt)||
1562+
(!(psrc->raw_parse_tree&&
1563+
IsTransactionExitStmt(psrc->raw_parse_tree->stmt))||
15631564
numParams!=0))
15641565
ereport(ERROR,
15651566
(errcode(ERRCODE_IN_FAILED_SQL_TRANSACTION),

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp