Commit 329ce60
allow SET type in column definitions
(I'm replaying query.log queries through vtexplain again recently,
so stirring up vtexplain errors.)
I left it using EnumValues in ColumnType,
not sure if that's acceptable.
In terms of the grammar, enum and set are the same:
https://dev.mysql.com/doc/refman/5.7/en/create-table.html
In terms of values, they're a bit different:
https://dev.mysql.com/doc/refman/5.7/en/constraint-enum.html
Currently I think EnumValues is only "cosmetic" (for Format),
so I kinda shrug about it.
Signed-off-by: Scott Lanning <[email protected]>1 parent bfea8c7 commit 329ce60
4 files changed
+1738
-1718
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| 1023 | + | |
| 1024 | + | |
1023 | 1025 | | |
1024 | 1026 | | |
1025 | 1027 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
| 1573 | + | |
| 1574 | + | |
1571 | 1575 | | |
1572 | 1576 | | |
1573 | 1577 | | |
| |||
0 commit comments