File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,13 +17,19 @@ var (
1717 dropColumnRegexp = regexp .MustCompile (`(?i)\bdrop\s+(column\s+|)([\S]+)$` )
1818 renameTableRegexp = regexp .MustCompile (`(?i)\brename\s+(to|as)\s+` )
1919 alterTableExplicitSchemaTableRegexps = []* regexp.Regexp {
20+ // ALTER TABLE `scm`.`tbl` something
2021 regexp .MustCompile (`(?i)\balter\s+table\s+` + "`" + `([^` + "`" + `]+)` + "`" + `[.]` + "`" + `([^` + "`" + `]+)` + "`" + `\s+(.*$)` ),
22+ // ALTER TABLE `scm`.tbl something
2123 regexp .MustCompile (`(?i)\balter\s+table\s+` + "`" + `([^` + "`" + `]+)` + "`" + `[.]([\S]+)\s+(.*$)` ),
24+ // ALTER TABLE scm.`tbl` something
2225 regexp .MustCompile (`(?i)\balter\s+table\s+([\S]+)[.]` + "`" + `([^` + "`" + `]+)` + "`" + `\s+(.*$)` ),
26+ // ALTER TABLE scm.tbl something
2327 regexp .MustCompile (`(?i)\balter\s+table\s+([\S]+)[.]([\S]+)\s+(.*$)` ),
2428 }
2529 alterTableExplicitTableRegexps = []* regexp.Regexp {
30+ // ALTER TABLE `tbl` something
2631 regexp .MustCompile (`(?i)\balter\s+table\s+` + "`" + `([^` + "`" + `]+)` + "`" + `\s+(.*$)` ),
32+ // ALTER TABLE tbl something
2733 regexp .MustCompile (`(?i)\balter\s+table\s+([\S]+)\s+(.*$)` ),
2834 }
2935)
You can’t perform that action at this time.
0 commit comments