瀏覽代碼

fix default Exec method

ls 1 年之前
父節點
當前提交
9ac6acee2d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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
 }