Skip to content

Commit afda902

Browse files
committed
fix crash when there is a syntax error in pragma assert-column
1 parent 85d60d3 commit afda902

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/parser.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1051,6 +1051,9 @@ plpgsql_check_pragma_assert(PLpgSQL_checkstate *cstate,
10511051
}
10521052
PG_END_TRY();
10531053

1054+
if (!result)
1055+
return false;
1056+
10541057
if (pat == PLPGSQL_CHECK_PRAGMA_ASSERT_SCHEMA)
10551058
{
10561059
(void) check_var_schema(cstate, dno[0]);

0 commit comments

Comments
 (0)