Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
6589ff3c
Commit
6589ff3c
authored
May 11, 2014
by
Hugo Beauzée-Luyssen
Browse files
Do not bind invalid primary key
parent
1d34596e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/SqliteTools.h
View file @
6589ff3c
...
...
@@ -18,7 +18,8 @@ class SqliteTools
int
res
=
sqlite3_prepare_v2
(
dbConnection
,
req
,
-
1
,
&
stmt
,
NULL
);
if
(
res
!=
SQLITE_OK
)
return
false
;
sqlite3_bind_int
(
stmt
,
1
,
foreignKey
);
if
(
foreignKey
!=
0
)
sqlite3_bind_int
(
stmt
,
1
,
foreignKey
);
res
=
sqlite3_step
(
stmt
);
while
(
res
==
SQLITE_ROW
)
{
...
...
Write
Preview
Supports
Markdown
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