iwongu / sqlite3pp

SQLite3++ - C++ wrapper of SQLite3 API
MIT License
609 stars 177 forks source link

If function sqlite3_column_text return nullptr #51

Closed DragonQuestHero closed 6 years ago

DragonQuestHero commented 6 years ago

If function sqlite3_column_text return nullptr The std::string constructor func can't use nullptr sqlite3_column_text 如果返回空指针 std::string直接GG

iwongu commented 6 years ago

It's by design. If the column is nullable, use char const* instead of string type.