iwongu / sqlite3pp

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

Exception when string column is null #67

Closed emontebeller closed 1 year ago

emontebeller commented 3 years ago

I'm getting exception when I run std::string test = qry.get(12);

and the column value is null......

What I'm doing wrong?

iwongu commented 3 years ago

I think I need more info. If the value can be null, you can use const char* version and check if the value is null.