Skip to content

Commit 7e1b91b

Browse files
committed
getSystemVar: skip reading Columns
1 parent 7267690 commit 7e1b91b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

connection.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,7 @@ func (mc *mysqlConn) getSystemVar(name string) ([]byte, error) {
230230

231231
if resLen > 0 {
232232
// Columns
233-
rows.columns, err = mc.readColumns(resLen)
234-
if err != nil {
233+
if err := mc.readUntilEOF(); err != nil {
235234
return nil, err
236235
}
237236
}

0 commit comments

Comments
 (0)