Closed ediap closed 7 years ago
In case when returned "const char*" value points to nullptr, the following implementation crashes. Is this expected implementation and the client code is requested to not use this wrapper for possible NULL values?
std::string query::rows::get(int idx, std::string) const { return get(idx, (char const*)0); }
Yes, if it can be NULL, please use char const* version instead of string one.
In case when returned "const char*" value points to nullptr, the following implementation crashes. Is this expected implementation and the client code is requested to not use this wrapper for possible NULL values?