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:
Marco Bubke
2021-04-21 11:48:57 +02:00
parent 90a07eca28
commit 44b4c461ff
2 changed files with 2 additions and 2 deletions

View File

@@ -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};

View File

@@ -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)));
} }