Skip to content

Commit 24a7ea2

Browse files
authored
Merge pull request #1169 from fnc12/bugfix/1168
Bugfix/1168
2 parents 40dbec2 + f8323bd commit 24a7ea2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dev/storage_base.h

+1-1
Original file line numberDiff line numberDiff 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,

include/sqlite_orm/sqlite_orm.h

+1-1
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)