-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change set statement to accept on/off as keyword and not identifier.
Add test to set/reset statement. Correct keyword typos. Add test on function arguments with default value and IN/OUT mode.
- Loading branch information
Showing
5 changed files
with
184 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -287,6 +287,7 @@ | |
(keyword_constraints) | ||
(keyword_snapshot) | ||
(keyword_characteristics) | ||
(keyword_off) | ||
] @keyword | ||
|
||
[ | ||
|
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,93 @@ | ||
================================================================================ | ||
Set statement | ||
================================================================================ | ||
|
||
SET client_encoding = 'UTF8'; | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(program | ||
(statement | ||
(set_statement | ||
(keyword_set) | ||
(object_reference | ||
(identifier)) | ||
(literal)))) | ||
|
||
================================================================================ | ||
Set statement on | ||
================================================================================ | ||
|
||
SET standard_conforming_strings = on; | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(program | ||
(statement | ||
(set_statement | ||
(keyword_set) | ||
(object_reference | ||
(identifier)) | ||
(keyword_on)))) | ||
|
||
================================================================================ | ||
Set statement off | ||
================================================================================ | ||
|
||
SET standard_conforming_strings = off; | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(program | ||
(statement | ||
(set_statement | ||
(keyword_set) | ||
(object_reference | ||
(identifier)) | ||
(keyword_off)))) | ||
|
||
================================================================================ | ||
Set statement default | ||
================================================================================ | ||
|
||
SET standard_conforming_strings TO DEFAULT; | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(program | ||
(statement | ||
(set_statement | ||
(keyword_set) | ||
(object_reference | ||
(identifier)) | ||
(keyword_to) | ||
(keyword_default)))) | ||
|
||
================================================================================ | ||
Reset statement | ||
================================================================================ | ||
|
||
RESET standard_conforming_strings; | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(program | ||
(statement | ||
(reset_statement | ||
(keyword_reset) | ||
(object_reference | ||
(identifier))))) | ||
|
||
================================================================================ | ||
Reset all | ||
================================================================================ | ||
|
||
RESET ALL; | ||
|
||
-------------------------------------------------------------------------------- | ||
|
||
(program | ||
(statement | ||
(reset_statement | ||
(keyword_reset) | ||
(keyword_all)))) |