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

Album: Fix non-sensical reference

parent 92c06dc1
......@@ -127,7 +127,7 @@ bool Album::createTable(DBConnection dbConnection )
AlbumPtr Album::create(DBConnection dbConnection, const std::string& title )
{
auto album = std::make_shared<Album>( title );
static const std::string& req = "INSERT INTO " + policy::AlbumTable::Name +
static const std::string req = "INSERT INTO " + policy::AlbumTable::Name +
"(id_album, title) VALUES(NULL, ?)";
if ( _Cache::insert( dbConnection, album, req, title ) == false )
return nullptr;
......
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