Skip to content

Commit fa86b70

Browse files
committed
fix: pass std::nullopt instead of NULL pointer to BatchQuery
1 parent 032d64f commit fa86b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/cpp/sqliteExecuteBatch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ std::vector<BatchQuery> batchParamsToCommands(const std::vector<BatchQueryComman
2525
commands.push_back(BatchQuery{command.query, std::move(std::get<ParamsVec>(*command.params))});
2626
}
2727
} else {
28-
commands.push_back(BatchQuery{command.query, NULL});
28+
commands.push_back(BatchQuery{command.query, std::nullopt});
2929
}
3030
}
3131

0 commit comments

Comments
 (0)