# # # patch "database.cc" # from [b6557ad928dfc8df8164870564a5e63ba728ce31] # to [3d8b917f04174328572d9380bcd351e43dfd08a0] # ============================================================ --- database.cc b6557ad928dfc8df8164870564a5e63ba728ce31 +++ database.cc 3d8b917f04174328572d9380bcd351e43dfd08a0 @@ -704,9 +704,10 @@ vector row; for (int col = 0; col < ncol; col++) { - const char * value = sqlite3_column_text_s(i->second.stmt(), col); + const char * value = (const char*)sqlite3_column_blob(i->second.stmt(), col); + int bytes = sqlite3_column_bytes(i->second.stmt(), col); E(value, F("null result in query: %s\n") % query.sql_cmd); - row.push_back(value); + row.push_back(std::string(value, value + bytes)); //L(FL("row %d col %d value='%s'\n") % nrow % col % value); } res.push_back(row);