Skip to content

Commit 5b4d37f

Browse files
committed
fixup
1 parent 2d288d4 commit 5b4d37f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

server/stmt.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ func (c *Conn) handleStmtExecute(data []byte) (*Result, error) {
107107

108108
flag := data[pos]
109109
pos++
110-
111110
// Supported types:
112111
// - CURSOR_TYPE_NO_CURSOR
113112
// - PARAMETER_COUNT_AVAILABLE
@@ -126,7 +125,7 @@ func (c *Conn) handleStmtExecute(data []byte) (*Result, error) {
126125
return nil, NewError(ER_UNKNOWN_ERROR,
127126
fmt.Sprintf("unsupported flag %s", "CURSOR_TYPE_FOR_UPDATE"))
128127
}
129-
if flag&CURSOR_TYPE_READ_ONLY > 0 {
128+
if flag&CURSOR_TYPE_SCROLLABLE > 0 {
130129
return nil, NewError(ER_UNKNOWN_ERROR,
131130
fmt.Sprintf("unsupported flag %s", "CURSOR_TYPE_SCROLLABLE"))
132131
}

0 commit comments

Comments
 (0)