Skip to content

Commit de021f9

Browse files
committed
getSystemVar result validity doc
1 parent c2dde2d commit de021f9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connection.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ func (mc *mysqlConn) Query(query string, args []driver.Value) (driver.Rows, erro
200200
}
201201

202202
// Gets the value of the given MySQL System Variable
203+
// The returned byte slice is only valid until the next read
203204
func (mc *mysqlConn) getSystemVar(name string) (val []byte, err error) {
204205
// Send command
205206
err = mc.writeCommandPacketStr(comQuery, "SELECT @@"+name)

0 commit comments

Comments
 (0)