How to bind simple char char_type; and read it back from the sqlite3 database?
char char_type;
char_type = 'V';
sqlite3_bind_text(stmt, 1, char_type); // error: invalid conversion from 'char' to 'const char*'
/usr/local/include/sqlite3.h:3430: error: too few arguments to function 'int sqlite3_bind_text(sqlite3_stmt*, int, const char*, int, void ()(void))'
// read it back?
char_type = reinterpret_cast<char*> ( sqlite3_column_text(stmt, 1) );
sqlite3_bind_text()takes a pointer, so you can do&char_typefor that. Also, why are you passing three arguments rather than 5?-1, , SQLITE_TRANSIENT. And I will try&char_typeas suggested. Thanks.