Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
dveeden committed Feb 4, 2025
commit 5b4d37feb3982f290f2036d934c41f0ff607e332
3 changes: 1 addition & 2 deletions server/stmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ func (c *Conn) handleStmtExecute(data []byte) (*Result, error) {

flag := data[pos]
pos++

// Supported types:
// - CURSOR_TYPE_NO_CURSOR
// - PARAMETER_COUNT_AVAILABLE
Expand All @@ -126,7 +125,7 @@ func (c *Conn) handleStmtExecute(data []byte) (*Result, error) {
return nil, NewError(ER_UNKNOWN_ERROR,
fmt.Sprintf("unsupported flag %s", "CURSOR_TYPE_FOR_UPDATE"))
}
if flag&CURSOR_TYPE_READ_ONLY > 0 {
if flag&CURSOR_TYPE_SCROLLABLE > 0 {
return nil, NewError(ER_UNKNOWN_ERROR,
fmt.Sprintf("unsupported flag %s", "CURSOR_TYPE_SCROLLABLE"))
}
Expand Down