File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,18 @@ struct SQLiteExecuteQueryResult {
3232};
3333
3434// constexpr function that maps SQLiteColumnType to string literals
35- constexpr ColumnType mapSQLiteTypeToColumnType (std::string type) {
36- if (type == " BOOLEAN" ) {
35+ constexpr ColumnType mapSQLiteTypeToColumnType (const char * type) {
36+ if (type == NULL ) {
37+ return ColumnType::NULL_VALUE;
38+ } else if (*type == " BOOLEAN" ) {
3739 return ColumnType::BOOLEAN;
38- } else if (type == " FLOAT" ) {
40+ } else if (* type == " FLOAT" ) {
3941 return ColumnType::NUMBER;
40- } else if (type == " INTEGER" ) {
42+ } else if (* type == " INTEGER" ) {
4143 return ColumnType::INT64;
42- } else if (type == " TEXT" ) {
44+ } else if (* type == " TEXT" ) {
4345 return ColumnType::TEXT;
44- } else if (type == " BLOB" ) {
46+ } else if (* type == " BLOB" ) {
4547 return ColumnType::ARRAY_BUFFER;
4648 } else {
4749 return ColumnType::NULL_VALUE;
You can’t perform that action at this time.
0 commit comments