-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: stmt_call, stmt_close, stmt_dynaexec, stmt_exit
This commit adds the AST and grammar rules for `stmt_call`, `stmt_close`, `stmt_dynaexec`, and `stmt_exit` Release note: None
- Loading branch information
1 parent
6820fdb
commit 6cd98d9
Showing
8 changed files
with
167 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
parse | ||
DECLARE | ||
BEGIN | ||
CALL fn(1); | ||
DO $$ this is a code block $$; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
CALL a function/procedure | ||
DO a code block | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
parse | ||
DECLARE | ||
BEGIN | ||
CLOSE some_cursor; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
CLOSE a cursor | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
parse | ||
DECLARE | ||
BEGIN | ||
EXECUTE 'any command'; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
EXECUTE a dynamic command | ||
END | ||
|
||
parse | ||
DECLARE | ||
BEGIN | ||
EXECUTE 'any command' INTO x1; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
EXECUTE a dynamic command WITH INTO | ||
END | ||
|
||
parse | ||
DECLARE | ||
BEGIN | ||
EXECUTE 'any command' INTO STRICT x1; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
EXECUTE a dynamic command WITH INTO STRICT | ||
END | ||
|
||
parse | ||
DECLARE | ||
BEGIN | ||
EXECUTE 'any command' INTO x1 USING x2; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
EXECUTE a dynamic command WITH INTO WITH USING | ||
END | ||
|
||
parse | ||
DECLARE | ||
BEGIN | ||
EXECUTE 'any command' INTO x1, x2 USING y1, y2; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
EXECUTE a dynamic command WITH INTO WITH USING | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
parse | ||
DECLARE | ||
BEGIN | ||
EXIT some_label; | ||
EXIT some_label WHEN some_condition; | ||
END | ||
---- | ||
DECLARE | ||
BEGIN | ||
EXIT | ||
EXIT | ||
END |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters