Skip to content

Commit

Permalink
feat: fix up constraint names too
Browse files Browse the repository at this point in the history
Signed-off-by: Manan Gupta <[email protected]>
  • Loading branch information
GuptaManan100 committed Apr 2, 2024
1 parent 12703b1 commit 47da54e
Show file tree
Hide file tree
Showing 3 changed files with 6,023 additions and 6,009 deletions.
2 changes: 2 additions & 0 deletions go/vt/sqlparser/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4984,6 +4984,7 @@ func TestCreateTable(t *testing.T) {
primary key (id, username),
key by_email (email(10), username),
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b),
constraint indexes foreign key (k, j) references t2 (a, b),
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b) on delete restrict,
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b) on delete no action,
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b) on delete cascade on update set default,
Expand Down Expand Up @@ -5020,6 +5021,7 @@ func TestCreateTable(t *testing.T) {
primary key (id, username),
key by_email (email(10), username),
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b),
constraint ` + "`indexes`" + ` foreign key (k, j) references t2 (a, b),
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b) on delete restrict,
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b) on delete no action,
constraint second_ibfk_1 foreign key (k, j) references t2 (a, b) on delete cascade on update set default,
Expand Down
Loading

0 comments on commit 47da54e

Please sign in to comment.