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
c1a7a38c
Commit
c1a7a38c
authored
Feb 01, 2014
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore error while checking QueryOnly status to make Travis happy.
parent
a9c8e3d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
pragma_test.go
pragma_test.go
+6
-1
No files found.
pragma_test.go
View file @
c1a7a38c
...
...
@@ -5,8 +5,10 @@
package
sqlite_test
import
(
"
github.com/bmizerany/assert
"
"
io
"
"testing"
"github.com/bmizerany/assert"
)
func
TestIntegrityCheck
(
t
*
testing
.
T
)
{
...
...
@@ -85,6 +87,9 @@ func TestQueryOnly(t *testing.T) {
db
:=
open
(
t
)
defer
checkClose
(
db
,
t
)
mode
,
err
:=
db
.
QueryOnly
(
""
)
if
err
==
io
.
EOF
{
return
// not supported
}
checkNoError
(
t
,
err
,
"Error reading query_only status of database: %s"
)
assert
.
T
(
t
,
!
mode
,
"expecting query_only to be false by default"
)
err
=
db
.
SetQueryOnly
(
""
,
true
)
...
...
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