Browse Source

getSystemVar result validity doc

Julien Schmidt 12 years ago
parent
commit
de021f978c
1 changed files with 1 additions and 0 deletions
  1. 1 0
      connection.go

+ 1 - 0
connection.go

@@ -200,6 +200,7 @@ func (mc *mysqlConn) Query(query string, args []driver.Value) (driver.Rows, erro
 }
 }
 
 
 // Gets the value of the given MySQL System Variable
 // Gets the value of the given MySQL System Variable
+// The returned byte slice is only valid until the next read
 func (mc *mysqlConn) getSystemVar(name string) (val []byte, err error) {
 func (mc *mysqlConn) getSystemVar(name string) (val []byte, err error) {
 	// Send command
 	// Send command
 	err = mc.writeCommandPacketStr(comQuery, "SELECT @@"+name)
 	err = mc.writeCommandPacketStr(comQuery, "SELECT @@"+name)