Explorar el Código

getSystemVar result validity doc

Julien Schmidt hace 12 años
padre
commit
de021f978c
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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
+// The returned byte slice is only valid until the next read
 func (mc *mysqlConn) getSystemVar(name string) (val []byte, err error) {
 	// Send command
 	err = mc.writeCommandPacketStr(comQuery, "SELECT @@"+name)