Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

T655 Cyclically dependent routines #127

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -416,11 +416,11 @@ fetchClause
;

limitRowCount
: numberLiterals | parameterMarker
: numberLiterals | parameterMarker | bindLiterals
;

limitOffset
: numberLiterals | parameterMarker
: numberLiterals | parameterMarker | bindLiterals
;

dataType
Expand Down Expand Up @@ -562,3 +562,7 @@ attribute
attributeClause
: attribute (COMMA_ attribute)*
;

bindLiterals
: COLON_ identifier
;
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ statement
| fetchStatement
| whileStatement
| ifStatement
| executeStmt
;

cursorOpenStatement
Expand All @@ -157,25 +158,19 @@ announcementClause
;

announcement
: localVariableAnnouncement
| cursorAnnouncement
: localVariableOrCursorAnnouncement
| procedureAnnouncement
| functioneAnnouncement
;

localVariableAnnouncement
localVariableOrCursorAnnouncement
: DECLARE VARIABLE? (
localVariableDeclarationName typeDescriptionArgument
(NOT NULL)?
collateClause?
((EQ_ | DEFAULT) defaultValue)?
| cursorName CURSOR FOR LP_ select RP_ SEMI_?
)
;

cursorAnnouncement
: DECLARE VARIABLE? cursorName
CURSOR FOR (SCROLL | NO SCROLL)? LP_ select RP_ SEMI_?
| cursorName
CURSOR FOR (SCROLL | NO SCROLL)? LP_ select RP_ SEMI_? )
;

procedureAnnouncement
Expand Down Expand Up @@ -381,15 +376,15 @@ executeStmt
;

executeProcedure
: EXECUTE PROCEDURE procedureName exprClause?
: EXECUTE PROCEDURE procedureName exprClause? returningValuesClause?
;

exprClause
: LP_ expr (COMMA_ expr)* RP_
;

returningValuesClause
: RETURNING_VALUES exprClause? SEMI_
: RETURNING_VALUES exprClause SEMI_
;

createTrigger
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ assignmentValues
;

assignmentValue
: expr | DEFAULT | blobValue
: expr | DEFAULT | blobValue | bindLiterals
;

blobValue
Expand Down
Loading