Skip to content

Commit b071d2c

Browse files
committed
Changed the std::optional test to use the same optional as the library
1 parent 54d2ae1 commit b071d2c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/std_optional.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ using namespace std;
88
#ifdef MODERN_SQLITE_STD_OPTIONAL_SUPPORT
99
void insert(database& db, bool is_null) {
1010
int id = 1;
11-
std::optional<int> val;
11+
sqlite::optional<int> val;
1212
if(!is_null) val = 5;
1313

1414
db << "delete from test where id = 1";
1515
db << "insert into test(id,val) values(?,?)" << id << val;
1616
}
1717

1818
void select(database& db, bool should_be_null) {
19-
db << "select id,val from test" >> [&](long long, std::optional<int> val) {
19+
db << "select id,val from test" >> [&](long long, sqlite::optional<int> val) {
2020
if(should_be_null) {
2121
if(val) exit(EXIT_FAILURE);
2222
} else {

0 commit comments

Comments
 (0)