Skip to content

Commit

Permalink
修复handleShowColumns反单引号bug
Browse files Browse the repository at this point in the history
  • Loading branch information
wuzhc committed Apr 28, 2019
1 parent ddcace1 commit b1d86d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proxy/server/conn_preshard.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func (c *ClientConn) handleShowColumns(sql string, tokens []string,
i+2 < tokensLen {
if strings.ToLower(tokens[i+1]) == mysql.TK_STR_FROM {
// tableName := strings.Trim(tokens[i+2], "`")
DBName, tableName := sqlparser.GetDBTable(tokens[i+1])
DBName, tableName := sqlparser.GetDBTable(tokens[i+2])
if DBName != "" {
ruleDB = DBName
} else {
Expand Down

0 comments on commit b1d86d9

Please sign in to comment.