We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c335d commit 3fb513cCopy full SHA for 3fb513c
tests/prepared_statment.cc
@@ -52,11 +52,13 @@ int main() {
52
db << "select ?,?" << 1 << 1 >> test;
53
db << "select ?,?" << test << test >> test;
54
55
- db << "select ?" << test >> [](int t) {}; // rVal
56
- db << "select ?,?" << test << 1 >> [](int t, int p) {};
57
- db << "select ?,?" << 1 << test >> [](int t, int p) {};
58
- db << "select ?,?" << 1 << 1 >> [](int t, int p) {};
59
- db << "select ?,?" << test << test >> [](int t, int p) {};
+ int q = 0;
+
+ db << "select ?" << test >> [&](int t) { q = t++; }; // rVal
+ db << "select ?,?" << test << 1 >> [&](int t, int p) { q = t + p; };
+ db << "select ?,?" << 1 << test >> [&](int t, int p) { q = t + p; };
60
+ db << "select ?,?" << 1 << 1 >> [&](int t, int p) { q = t + p; };
61
+ db << "select ?,?" << test << test >> [&](int t, int p) { q = t + p; };
62
63
db << "select ?,?,?" << test << 1 << test; // mix
64
db << "select ?,?,?" << 1 << test << 1;
0 commit comments