summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-27 21:02:26 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-27 21:02:26 +0100
commit620b2f021e10384453799e81cd0253b1b7ef0ae1 (patch)
treec67992f36a73a353f1eaaaeac8d0b3b4b1f3ccea
parentMark BufferOf constructor explicit (diff)
downloadmygrate-620b2f021e10384453799e81cd0253b1b7ef0ae1.tar.bz2
mygrate-620b2f021e10384453799e81cd0253b1b7ef0ae1.tar.xz
mygrate-620b2f021e10384453799e81cd0253b1b7ef0ae1.zip
Reserve space in the right vector
-rw-r--r--test/test-e2e.cpp2
1 files changed, 1 insertions, 1 deletions
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<O> outs;
- vals.reserve(ROWS);
+ outs.reserve(ROWS);
for (auto v : *rs) {
outs.push_back(v[0]);
}