fix: #4 select works as intended so long as it contains the word at the beginning "select"
This commit is contained in:
1 parent
8e2324b80c
commit
a16d06df64
1 file changed
+1
-1
+1
-1
@@ -165,7 +165,7 @@ func (statement *Statement) PrepareStatements(inputBuffer *InputBuffer) PrepareR
|
||||
statement.stype = StatementInsert
|
||||
return PrepareSuccess
|
||||
}
|
||||
if strings.HasPrefix(inputBuffer.Buffer, "select") {
|
||||
if inputBuffer.Buffer == "select" {
|
||||
statement.stype = StatementSelect
|
||||
return PrepareSuccess
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user