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
d3ea2310
Commit
d3ea2310
authored
May 20, 2014
by
Hugo Beauzée-Luyssen
Browse files
Cache: Fix SQL syntax
parent
74570104
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Cache.h
View file @
d3ea2310
...
...
@@ -54,7 +54,7 @@ class Cache
auto
it
=
Store
.
find
(
key
);
if
(
it
!=
Store
.
end
()
)
return
it
->
second
;
static
const
std
::
string
req
=
"SELECT * FROM"
+
TABLEPOLICY
::
Name
+
static
const
std
::
string
req
=
"SELECT * FROM
"
+
TABLEPOLICY
::
Name
+
" WHERE "
+
TABLEPOLICY
::
CacheColumn
+
" = ?"
;
auto
res
=
SqliteTools
::
fetchOne
<
IMPL
>
(
dbConnection
,
req
.
c_str
(),
key
);
Store
[
key
]
=
res
;
...
...
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