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

Sqlite: Traits: Fix empty tuple bindings

parent 931152b3
......@@ -217,8 +217,12 @@ struct Traits<T, typename std::enable_if<
std::is_same<typename std::decay<T>::type, std::tuple<>>::value>::type
>
{
static int Bind(sqlite3_stmt*, int, std::tuple<> )
static int Bind(sqlite3_stmt*, int& pos, std::tuple<> )
{
// Decrement the position since the original SqliteTools::_bind call will
// increment the position for each parameter.
assert(pos >= 1);
--pos;
return SQLITE_OK;
}
};
......
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