Browse Source

fix default Exec method

ls 1 year ago
parent
commit
9ac6acee2d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db/db.go

+ 1 - 1
db/db.go

@@ -397,6 +397,6 @@ func Exec(query string, args ...interface{}) (LastInsertId, RowsAffected int64,
 		return
 	}
 
-	LastInsertId, RowsAffected, err = defaultDB.conn.Exec(query, args...)
+	LastInsertId, RowsAffected, err = defaultDB.Exec(query, args...)
 	return
 }