Closed rinigus closed 6 years ago
The std::string version is intentionally not returning empty string when the value is NULL. The std::string version is for getting NOT NULL values. If the value is NULLABLE, const char* version should be used.
Sorry for the lack of explanations in the code and docs.
This PR allows using std::string to retrieve null data values as well. If NULL, empty string is returned. I think, its more consistent interface and allows using the library in a simple manner. For those who want to distinguish empty string and NULL values, old approach through
const char*
should work.Related: https://github.com/iwongu/sqlite3pp/issues/48