File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,19 @@ var (
17
17
dropColumnRegexp = regexp .MustCompile (`(?i)\bdrop\s+(column\s+|)([\S]+)$` )
18
18
renameTableRegexp = regexp .MustCompile (`(?i)\brename\s+(to|as)\s+` )
19
19
alterTableExplicitSchemaTableRegexps = []* regexp.Regexp {
20
+ // ALTER TABLE `scm`.`tbl` something
20
21
regexp .MustCompile (`(?i)\balter\s+table\s+` + "`" + `([^` + "`" + `]+)` + "`" + `[.]` + "`" + `([^` + "`" + `]+)` + "`" + `\s+(.*$)` ),
22
+ // ALTER TABLE `scm`.tbl something
21
23
regexp .MustCompile (`(?i)\balter\s+table\s+` + "`" + `([^` + "`" + `]+)` + "`" + `[.]([\S]+)\s+(.*$)` ),
24
+ // ALTER TABLE scm.`tbl` something
22
25
regexp .MustCompile (`(?i)\balter\s+table\s+([\S]+)[.]` + "`" + `([^` + "`" + `]+)` + "`" + `\s+(.*$)` ),
26
+ // ALTER TABLE scm.tbl something
23
27
regexp .MustCompile (`(?i)\balter\s+table\s+([\S]+)[.]([\S]+)\s+(.*$)` ),
24
28
}
25
29
alterTableExplicitTableRegexps = []* regexp.Regexp {
30
+ // ALTER TABLE `tbl` something
26
31
regexp .MustCompile (`(?i)\balter\s+table\s+` + "`" + `([^` + "`" + `]+)` + "`" + `\s+(.*$)` ),
32
+ // ALTER TABLE tbl something
27
33
regexp .MustCompile (`(?i)\balter\s+table\s+([\S]+)\s+(.*$)` ),
28
34
}
29
35
)
You can’t perform that action at this time.
0 commit comments