Commit d902de2 1 parent b984abe commit d902de2 Copy full SHA for d902de2
File tree 1 file changed +4
-2
lines changed
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ program
64
64
65
65
statement
66
66
= non_transaction_statement
67
- / transaction_statement // math BEGIN transaction after BEGIN..END block
67
+ / transaction_statement // match BEGIN transaction after BEGIN..END block
68
68
/ & { return isAcceptUnsupportedGrammar (); } x :unsupported_grammar_stmt { return x; }
69
69
70
70
// This is referenced by BEGIN..END blocks of FUNCTION definitions,
@@ -198,8 +198,10 @@ inner_program
198
198
});
199
199
}
200
200
201
+ // BigQuery allows transactions inside BEGIN..END blocks, Postgres doesn't allow it.
201
202
inner_program_statement
202
- = non_transaction_statement
203
+ = & postgres x :non_transaction_statement { return x; }
204
+ / & bigquery x :statement { return x; }
203
205
/ & postgres x :return_stmt { return x; }
204
206
205
207
/**
You can’t perform that action at this time.
0 commit comments