You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingv_t = std::variant<std::monostate, std::string, int>;
nanodbc::result r = nanodbc::execute(connection, "SELECT a, b FROM t");
auto v0 = r.get<v_t>(0);
auto v1 = r.get<v_t>(1);
And, if is_null(column) == true then r.get<v_t>(column).index() == 0 i.e. returned variant is empty, initialised with the first alternative i.e. std::monostate.
It is desirable to support the following:
And, if
is_null(column) == true
thenr.get<v_t>(column).index() == 0
i.e. returned variant is empty, initialised with the first alternative i.e.std::monostate
.References
The text was updated successfully, but these errors were encountered: