fix: #4 select works as intended so long as it contains the word at the beginning "select" #7
+1
-1
@@ -165,7 +165,7 @@ func (statement *Statement) PrepareStatements(inputBuffer *InputBuffer) PrepareR
|
|||||||
statement.stype = StatementInsert
|
statement.stype = StatementInsert
|
||||||
return PrepareSuccess
|
return PrepareSuccess
|
||||||
}
|
}
|
||||||
if strings.HasPrefix(inputBuffer.Buffer, "select") {
|
if inputBuffer.Buffer == "select" {
|
||||||
statement.stype = StatementSelect
|
statement.stype = StatementSelect
|
||||||
return PrepareSuccess
|
return PrepareSuccess
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user