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 54d2ae1 commit b071d2cCopy full SHA for b071d2c
tests/std_optional.cc
@@ -8,15 +8,15 @@ using namespace std;
8
#ifdef MODERN_SQLITE_STD_OPTIONAL_SUPPORT
9
void insert(database& db, bool is_null) {
10
int id = 1;
11
- std::optional<int> val;
+ sqlite::optional<int> val;
12
if(!is_null) val = 5;
13
14
db << "delete from test where id = 1";
15
db << "insert into test(id,val) values(?,?)" << id << val;
16
}
17
18
void select(database& db, bool should_be_null) {
19
- db << "select id,val from test" >> [&](long long, std::optional<int> val) {
+ db << "select id,val from test" >> [&](long long, sqlite::optional<int> val) {
20
if(should_be_null) {
21
if(val) exit(EXIT_FAILURE);
22
} else {
0 commit comments