forked from qt-creator/qt-creator
Sqlite: Fix sqlite
Missed to remove the not anymore used ResultTypeCount. Change-Id: Ia150e945bd650cc1e3d19fcb9426621d93fa16c3 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -272,7 +272,7 @@ public:
|
|||||||
resetter.reset();
|
resetter.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int ResultTypeCount = 1, typename Container, typename... QueryTypes>
|
template<typename Container, typename... QueryTypes>
|
||||||
void readTo(Container &container, const QueryTypes &...queryValues)
|
void readTo(Container &container, const QueryTypes &...queryValues)
|
||||||
{
|
{
|
||||||
Resetter resetter{*this};
|
Resetter resetter{*this};
|
||||||
|
|||||||
@@ -997,7 +997,7 @@ TEST_F(SqliteStatement, ReadToContainer)
|
|||||||
std::deque<FooValue> values;
|
std::deque<FooValue> values;
|
||||||
ReadStatement<1> statement("SELECT number FROM test", database);
|
ReadStatement<1> statement("SELECT number FROM test", database);
|
||||||
|
|
||||||
statement.readTo<1>(values);
|
statement.readTo(values);
|
||||||
|
|
||||||
ASSERT_THAT(values, UnorderedElementsAre(Eq("blah"), Eq(23.3), Eq(40)));
|
ASSERT_THAT(values, UnorderedElementsAre(Eq("blah"), Eq(23.3), Eq(40)));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user