forked from qt-creator/qt-creator
Sqlite: Move result count to class declaration
It move the magic number of column results to the sql statement and improves the mock a little bit. Change-Id: I101067444cf27ec5dea0c72de7fd484a7e8710f0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -73,7 +73,7 @@ protected:
|
||||
|
||||
std::vector<Utils::SmallString> names() const
|
||||
{
|
||||
return Sqlite::ReadStatement("SELECT name FROM test", database).values<Utils::SmallString>(8);
|
||||
return Sqlite::ReadStatement<1>("SELECT name FROM test", database).values<Utils::SmallString>(8);
|
||||
}
|
||||
|
||||
static void updateHookCallback(
|
||||
|
||||
Reference in New Issue
Block a user