From 620b2f021e10384453799e81cd0253b1b7ef0ae1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 21:02:26 +0100 Subject: Reserve space in the right vector --- test/test-e2e.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test') diff --git a/test/test-e2e.cpp b/test/test-e2e.cpp index 67436ab..e16627a 100644 --- a/test/test-e2e.cpp +++ b/test/test-e2e.cpp @@ -322,7 +322,7 @@ replication_data_type_impl(Test * test) // read test records auto rs {MyGrate::DbStmt<"SELECT val FROM testout.test ORDER BY id">::execute(&test->pqm)}; std::vector outs; - vals.reserve(ROWS); + outs.reserve(ROWS); for (auto v : *rs) { outs.push_back(v[0]); } -- cgit v1.2.3