Skip to content

Commit

Permalink
limit syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
fifsky committed Apr 10, 2020
1 parent 0e54f90 commit a4d853b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func main() {
return
}

if !strings.Contains("create table",strings.ToLower(p.Table[0:20])) {
if !strings.Contains(strings.ToLower(p.Table[0:20]), "create table") {
w.Write([]byte(fmt.Sprintf("only support create table syntax\n")))
return
}
Expand Down

0 comments on commit a4d853b

Please sign in to comment.