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
27f7cb09
Commit
27f7cb09
authored
May 28, 2014
by
Hugo Beauzée-Luyssen
Browse files
Label: Fix SQL syntax error
parent
5b3dd628
Changes
1
Show whitespace changes
Inline
Side-by-side
src/Label.cpp
View file @
27f7cb09
...
...
@@ -62,7 +62,7 @@ bool Label::createTable(DBConnection dbConnection)
req
=
"CREATE TABLE IF NOT EXISTS LabelFileRelation("
"id_label INTEGER,"
"id_file INTEGER,"
"PRIMARY KEY (id_label, id_file)"
"PRIMARY KEY (id_label, id_file)
,
"
"FOREIGN KEY(id_label) REFERENCES Label(id_label) ON DELETE CASCADE,"
"FOREIGN KEY(id_file) REFERENCES File(id_file) ON DELETE CASCADE);"
;
return
SqliteTools
::
executeRequest
(
dbConnection
,
req
);
...
...
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