We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d479e37 commit ba61a04Copy full SHA for ba61a04
src/backend/tcop/postgres.c
@@ -1559,7 +1559,8 @@ exec_bind_message(StringInfo input_message)
1559
* functions.
1560
*/
1561
if (IsAbortedTransactionBlockState() &&
1562
- (!IsTransactionExitStmt(psrc->raw_parse_tree->stmt) ||
+ (!(psrc->raw_parse_tree &&
1563
+ IsTransactionExitStmt(psrc->raw_parse_tree->stmt)) ||
1564
numParams != 0))
1565
ereport(ERROR,
1566
(errcode(ERRCODE_IN_FAILED_SQL_TRANSACTION),
0 commit comments