Commit d3ea2310 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Cache: Fix SQL syntax

parent 74570104
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment