Merge pull request 'fix: #4 select works as intended so long as it contains the word at the beginning "select"' (#7) from dev into main
Reviewed-on: #7
This commit was merged in pull request #7.
This commit is contained in:
+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