You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(parser): support CAST to an array type for MySQL multi-valued indexes
MySQL defines a multi-valued index key part by casting to an array, e.g.
CAST(data->'$.zips' AS UNSIGNED ARRAY). The trailing ARRAY keyword was not
reachable, so both the CREATE INDEX and the ALTER TABLE form failed to parse.
ARRAY is accepted as a further word of the cast target type, the way INT
UNSIGNED already is, so no model change is needed and the deparsed statement
round trips. It is added to the CAST production only, where MySQL allows it,
which leaves the ARRAY<type> constructor form untouched.
Closes the last open group of #2490.
0 commit comments