Skip to content

Commit

Permalink
DBZ-8494 PLSQL - add multi comma-separated out of line column constra…
Browse files Browse the repository at this point in the history
…ints
  • Loading branch information
Naros committed Dec 10, 2024
1 parent e89db6e commit a63558b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3535,7 +3535,7 @@ object_type_col_properties
;

constraint_clauses
: ADD '(' (out_of_line_constraint* | out_of_line_ref_constraint) ')'
: ADD '(' (out_of_line_constraint (',' out_of_line_constraint)* | out_of_line_ref_constraint) ')'
| ADD (out_of_line_constraint* | out_of_line_ref_constraint)
| MODIFY (CONSTRAINT constraint_name | PRIMARY KEY | UNIQUE '(' column_name (',' column_name)* ')') constraint_state CASCADE?
| RENAME CONSTRAINT old_constraint_name TO new_constraint_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,8 @@ ALTER AUDIT POLICY ORDER_UPDATES_POL
ALTER AUDIT POLICY EMP_UPDATES_POL
CONDITION 'UID = 102'
EVALUATE PER STATEMENT;

ALTER TABLE MY_BASEPRICE_WAGEINDEX ADD (
CONSTRAINT MY_BASEPREICE_WAGEINDEX_PK PRIMARY KEY (MY_BASEPRICE_WAGEINDEX_GUID)
USING INDEX MY_BASEPRICE_WAGEINDEX_PK ENABLE VALIDATE,
CONSTRAINT MY_BASEPRICE_WAGEINDEX_UNQ UNIQUE (COMPANY_GUID, PLAN_GUID, START_DATE)
USING INDEX MY_BASEPRICE_WAGEINDEX_UNQ ENABLE VALIDATE);

0 comments on commit a63558b

Please sign in to comment.