diff options
author | mattn <mattn.jp@gmail.com> | 2018-11-02 16:49:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-02 16:49:07 +0900 |
commit | 1fc3fd346d3cc4c610f432d8bc938bb952733873 (patch) | |
tree | 44ea93e2c36d8decc46e4428f45db02056bee44b /sqlite3.go | |
parent | Merge pull request #655 from typeless/fix-too-large-arrary-error-v2 (diff) | |
parent | all: fix cgo compile failures on tip (diff) | |
download | golite-1fc3fd346d3cc4c610f432d8bc938bb952733873.tar.gz golite-1fc3fd346d3cc4c610f432d8bc938bb952733873.tar.xz |
Merge pull request #657 from kevinburke/compile-tip
travis.yml: build Go tip
Diffstat (limited to 'sqlite3.go')
-rw-r--r-- | sqlite3.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1674,7 +1674,7 @@ func (c *SQLiteConn) prepare(ctx context.Context, query string) (driver.Stmt, er defer C.free(unsafe.Pointer(pquery)) var s *C.sqlite3_stmt var tail *C.char - rv := C._sqlite3_prepare_v2_internal(c.db, pquery, -1, &s, &tail) + rv := C._sqlite3_prepare_v2_internal(c.db, pquery, C.int(-1), &s, &tail) if rv != C.SQLITE_OK { return nil, c.lastError() } @@ -1718,7 +1718,7 @@ func (c *SQLiteConn) GetFilename(schemaName string) string { // GetLimit returns the current value of a run-time limit. // See: sqlite3_limit, http://www.sqlite.org/c3ref/limit.html func (c *SQLiteConn) GetLimit(id int) int { - return int(C._sqlite3_limit(c.db, C.int(id), -1)) + return int(C._sqlite3_limit(c.db, C.int(id), C.int(-1))) } // SetLimit changes the value of a run-time limits. |