Skip to content

Commit

Permalink
Fix SQLiteWrapper not interpreting 'null' correctly in a string_null …
Browse files Browse the repository at this point in the history
…column of .tbl file. (hyrise#574)
  • Loading branch information
lanice authored and mrks committed Dec 11, 2017
1 parent 4bd9d96 commit ca28d02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/sql/sqlite_testrunner/sqlite_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> values = _split<std::string>(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];
Expand Down

0 comments on commit ca28d02

Please sign in to comment.