Skip to content

Commit

Permalink
Add new rule for predicate, correct rule for Table - checkConstraintD…
Browse files Browse the repository at this point in the history
…efinition
  • Loading branch information
makssent committed Sep 12, 2024
1 parent 8787728 commit 6b91ab0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ tableName
: (owner DOT_)? name
;

packageName
: identifier
;

parameterName
: identifier
;
Expand Down Expand Up @@ -254,6 +250,7 @@ predicate
| bitExpr NOT? STARTING WITH? bitExpr
| bitExpr IS NOT? DISTINCT FROM bitExpr
| bitExpr IS NOT? NULL
| bitExpr NOT? SIMILAR TO bitExpr (ESCAPE bitExpr)?
| bitExpr
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ dataTypeOption
;

checkConstraintDefinition
: (CONSTRAINT ignoredIdentifier?)? CHECK expr
: (CONSTRAINT ignoredIdentifier?)? checkClause
;

referenceDefinition
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -973,4 +973,8 @@ DATABASE

COMMENT
: C O M M E N T
;

SIMILAR
: S I M I L A R
;

0 comments on commit 6b91ab0

Please sign in to comment.