Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gosqlite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gosqlite
Commits
96a298b9
Commit
96a298b9
authored
Jun 08, 2014
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix Travis build.
parent
f5bd5897
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
.travis.yml
.travis.yml
+0
-1
shell/autocomplete_test.go
shell/autocomplete_test.go
+2
-0
sqlite.go
sqlite.go
+14
-10
No files found.
.travis.yml
View file @
96a298b9
...
...
@@ -9,7 +9,6 @@ before_install:
before_script
:
-
go get github.com/bmizerany/assert
-
go get code.google.com/p/go.tools/cmd/cover
-
go get github.com/sauerbraten/radix
-
go get -tags all github.com/gwenn/gosqlite
script
:
-
go test -tags all -cover ./...
\ No newline at end of file
shell/autocomplete_test.go
View file @
96a298b9
...
...
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
package
shell_test
import
(
...
...
sqlite.go
View file @
96a298b9
...
...
@@ -529,19 +529,23 @@ func (c *Conn) Close() error {
c
.
stmtCache
.
flush
()
// Dangling statements
stmt
:=
C
.
sqlite3_next_stmt
(
c
.
db
,
nil
)
for
stmt
!=
nil
{
if
C
.
sqlite3_stmt_busy
(
stmt
)
!=
0
{
Log
(
C
.
SQLITE_MISUSE
,
"Dangling statement (not reset):
\"
"
+
C
.
GoString
(
C
.
sqlite3_sql
(
stmt
))
+
"
\"
"
)
}
else
{
Log
(
C
.
SQLITE_MISUSE
,
"Dangling statement (not finalize):
\"
"
+
C
.
GoString
(
C
.
sqlite3_sql
(
stmt
))
+
"
\"
"
)
rv
:=
C
.
sqlite3_close
(
c
.
db
)
if
rv
==
C
.
SQLITE_BUSY
{
// Dangling statements
stmt
:=
C
.
sqlite3_next_stmt
(
c
.
db
,
nil
)
for
stmt
!=
nil
{
if
C
.
sqlite3_stmt_busy
(
stmt
)
!=
0
{
Log
(
C
.
SQLITE_MISUSE
,
"Dangling statement (not reset):
\"
"
+
C
.
GoString
(
C
.
sqlite3_sql
(
stmt
))
+
"
\"
"
)
}
else
{
Log
(
C
.
SQLITE_MISUSE
,
"Dangling statement (not finalize):
\"
"
+
C
.
GoString
(
C
.
sqlite3_sql
(
stmt
))
+
"
\"
"
)
}
C
.
sqlite3_finalize
(
stmt
)
stmt
=
C
.
sqlite3_next_stmt
(
c
.
db
,
nil
)
}
//C.sqlite3_finalize(stmt)
stmt
=
C
.
sqlite3_next_stmt
(
c
.
db
,
stmt
)
rv
=
C
.
sqlite3_close
(
c
.
db
)
}
rv
:=
C
.
sqlite3_close
(
c
.
db
)
if
rv
!=
C
.
SQLITE_OK
{
Log
(
int32
(
rv
),
"error while closing Conn"
)
return
c
.
error
(
rv
,
"Conn.Close"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment