File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -1668,13 +1668,17 @@ func (e *Extractor) CheckAndApplyLowerCaseTableNames() {
16681668 if e .lowerCaseTableNames != mysqlconfig .LowerCaseTableNames0 {
16691669 lowerConfigItem := func (configItem []* common.DataSource ) {
16701670 for _ , d := range configItem {
1671+ g .LowerString (& d .TableSchema )
16711672 g .LowerString (& d .TableSchemaRename )
1672- g .LowerString (& d .TableSchemaRegex )
1673- g .LowerString (& d .TableSchemaRename )
1673+ if d .TableSchemaRegex != "" {
1674+ d .TableSchemaRegex = "(?i)" + d .TableSchemaRegex
1675+ }
16741676 for _ , table := range d .Tables {
16751677 g .LowerString (& table .TableName )
1676- g .LowerString (& table .TableRegex )
16771678 g .LowerString (& table .TableRename )
1679+ if table .TableRegex != "" {
1680+ table .TableRegex = "(?i)" + table .TableRegex
1681+ }
16781682 }
16791683 }
16801684 }
You can’t perform that action at this time.
0 commit comments