File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ namespace sqlite_orm {
9595 bool table_exists (sqlite3* db, const std::string& tableName) const {
9696 bool result = false ;
9797 std::stringstream ss;
98- ss << " SELECT COUNT(*) FROM sqlite_master WHERE type = " << streaming_identifier (" table" )
98+ ss << " SELECT COUNT(*) FROM sqlite_master WHERE type = " << quote_string_literal (" table" )
9999 << " AND name = " << quote_string_literal (tableName) << std::flush;
100100 perform_exec (
101101 db,
Original file line number Diff line number Diff line change @@ -14296,7 +14296,7 @@ namespace sqlite_orm {
1429614296 bool table_exists(sqlite3* db, const std::string& tableName) const {
1429714297 bool result = false;
1429814298 std::stringstream ss;
14299- ss << "SELECT COUNT(*) FROM sqlite_master WHERE type = " << streaming_identifier ("table")
14299+ ss << "SELECT COUNT(*) FROM sqlite_master WHERE type = " << quote_string_literal ("table")
1430014300 << " AND name = " << quote_string_literal(tableName) << std::flush;
1430114301 perform_exec(
1430214302 db,
You can’t perform that action at this time.
0 commit comments