diff --git a/api/main.go b/api/main.go index 65d1587..d819a44 100644 --- a/api/main.go +++ b/api/main.go @@ -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 }