mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
ownSql: Proper initialization of result value plus assert on it.
This commit is contained in:
parent
ee8a93ae9a
commit
8c7953a47c
@ -159,7 +159,7 @@ bool SqlQuery::next()
|
||||
|
||||
void SqlQuery::bindValue(int pos, const QVariant& value)
|
||||
{
|
||||
int res;
|
||||
int res = -1;
|
||||
if( _stmt ) {
|
||||
switch (value.type()) {
|
||||
case QVariant::Int:
|
||||
@ -201,6 +201,7 @@ void SqlQuery::bindValue(int pos, const QVariant& value)
|
||||
break; }
|
||||
}
|
||||
}
|
||||
Q_ASSERT( res == SQLITE_OK );
|
||||
}
|
||||
|
||||
QString SqlQuery::stringValue(int index)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user