File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
sqle/driver/mysql/executor Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import (
12
12
13
13
driverV2 "github.com/actiontech/sqle/sqle/driver/v2"
14
14
"github.com/actiontech/sqle/sqle/errors"
15
+ "github.com/actiontech/sqle/sqle/utils"
15
16
"github.com/go-sql-driver/mysql"
16
17
"github.com/sirupsen/logrus"
17
18
)
@@ -786,7 +787,10 @@ type TableIndexesInfo struct {
786
787
787
788
// When using keywords as view names, you need to pay attention to wrapping them in quotation marks
788
789
func (c * Executor ) GetTableIndexesInfo (schema , tableName string ) ([]* TableIndexesInfo , error ) {
789
- records , err := c .Db .Query (fmt .Sprintf ("SHOW INDEX FROM %s.%s" , schema , tableName ))
790
+ records , err := c .Db .Query (fmt .Sprintf ("SHOW INDEX FROM %s.%s" ,
791
+ utils .SupplementalQuotationMarks (schema ),
792
+ utils .SupplementalQuotationMarks (tableName ),
793
+ ))
790
794
if err != nil {
791
795
return nil , err
792
796
}
You can’t perform that action at this time.
0 commit comments