diff --git a/src/test/sql/sqlite_testrunner/sqlite_wrapper.cpp b/src/test/sql/sqlite_testrunner/sqlite_wrapper.cpp index 2034170e78..d2e36e86fb 100644 --- a/src/test/sql/sqlite_testrunner/sqlite_wrapper.cpp +++ b/src/test/sql/sqlite_testrunner/sqlite_wrapper.cpp @@ -63,7 +63,7 @@ void SQLiteWrapper::create_table_from_tbl(const std::string& file, const std::st query << "INSERT INTO " << table_name << " VALUES ("; std::vector values = _split(line, '|'); for (size_t i = 0; i < values.size(); i++) { - if (col_types[i] == "TEXT") { + if (col_types[i] == "TEXT" && values[i] != "null") { query << "'" << values[i] << "'"; } else { query << values[i];