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
dd5964ff
Commit
dd5964ff
authored
Sep 18, 2017
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore extended error code
parent
9d694b0a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
backup.go
backup.go
+1
-1
sqlite.go
sqlite.go
+1
-1
No files found.
backup.go
View file @
dd5964ff
...
@@ -50,7 +50,7 @@ func (b *Backup) Step(npage int32) error {
...
@@ -50,7 +50,7 @@ func (b *Backup) Step(npage int32) error {
return
errors
.
New
(
"nil sqlite backup"
)
return
errors
.
New
(
"nil sqlite backup"
)
}
}
rv
:=
C
.
sqlite3_backup_step
(
b
.
sb
,
C
.
int
(
npage
))
rv
:=
C
.
sqlite3_backup_step
(
b
.
sb
,
C
.
int
(
npage
))
if
rv
==
C
.
SQLITE_OK
||
Errno
(
rv
)
==
ErrBusy
||
Errno
(
rv
)
==
ErrLocked
{
// TODO Trace busy/locked errors
if
rv
==
C
.
SQLITE_OK
||
Errno
(
rv
&
0xFF
)
==
ErrBusy
||
Errno
(
rv
&
0xFF
)
==
ErrLocked
{
// TODO Trace busy/locked errors
return
nil
return
nil
}
else
if
rv
==
C
.
SQLITE_DONE
{
}
else
if
rv
==
C
.
SQLITE_DONE
{
return
Errno
(
rv
)
return
Errno
(
rv
)
...
...
sqlite.go
View file @
dd5964ff
...
@@ -609,7 +609,7 @@ func (c *Conn) Close() error {
...
@@ -609,7 +609,7 @@ func (c *Conn) Close() error {
rv
:=
C
.
sqlite3_close
(
c
.
db
)
rv
:=
C
.
sqlite3_close
(
c
.
db
)
if
rv
==
C
.
SQLITE_BUSY
{
if
rv
&
0xFF
==
C
.
SQLITE_BUSY
{
// Dangling statements
// Dangling statements
stmt
:=
C
.
sqlite3_next_stmt
(
c
.
db
,
nil
)
stmt
:=
C
.
sqlite3_next_stmt
(
c
.
db
,
nil
)
for
stmt
!=
nil
{
for
stmt
!=
nil
{
...
...
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