Browse Source

also unmask RowsAffected. Fixes issue #16. See rev 1c6b015e7989

Julien Schmidt 13 years ago
parent
commit
6521f2a0d7
1 changed files with 1 additions and 2 deletions
  1. 1 2
      connection.go

+ 1 - 2
connection.go

@@ -222,8 +222,6 @@ func (mc *mysqlConn) exec(query string) (e error) {
 		return
 	}
 
-	mc.affectedRows = 0
-
 	if resLen > 0 {
 		_, e = mc.readUntilEOF()
 		if e != nil {
@@ -272,6 +270,7 @@ func (mc *mysqlConn) getSystemVar(name string) (val string, e error) {
 	return
 }
 
+// *** DEPRECATED ***
 // Executes a simple Ping-CMD to test or keepalive the connection
 func (mc *mysqlConn) Ping() (e error) {
 	// Send command