diff --git a/dev/storage_base.h b/dev/storage_base.h index 4f76208a8..20a8d93f2 100644 --- a/dev/storage_base.h +++ b/dev/storage_base.h @@ -930,7 +930,7 @@ namespace sqlite_orm { if(ifExists) { ss << " IF EXISTS"; } - ss << streaming_identifier(tableName) << std::flush; + ss << ' ' << streaming_identifier(tableName) << std::flush; perform_void_exec(db, ss.str()); } @@ -940,7 +940,7 @@ namespace sqlite_orm { if(ifExists) { ss << " IF EXISTS"; } - ss << quote_identifier(indexName) << std::flush; + ss << ' ' << quote_identifier(indexName) << std::flush; perform_void_exec(this->get_connection().get(), ss.str()); } @@ -950,7 +950,7 @@ namespace sqlite_orm { if(ifExists) { ss << " IF EXISTS"; } - ss << quote_identifier(triggerName) << std::flush; + ss << ' ' << quote_identifier(triggerName) << std::flush; perform_void_exec(this->get_connection().get(), ss.str()); } diff --git a/include/sqlite_orm/sqlite_orm.h b/include/sqlite_orm/sqlite_orm.h index 35cec13a5..adf7767bd 100644 --- a/include/sqlite_orm/sqlite_orm.h +++ b/include/sqlite_orm/sqlite_orm.h @@ -18561,7 +18561,7 @@ namespace sqlite_orm { if(ifExists) { ss << " IF EXISTS"; } - ss << streaming_identifier(tableName) << std::flush; + ss << ' ' << streaming_identifier(tableName) << std::flush; perform_void_exec(db, ss.str()); } @@ -18571,7 +18571,7 @@ namespace sqlite_orm { if(ifExists) { ss << " IF EXISTS"; } - ss << quote_identifier(indexName) << std::flush; + ss << ' ' << quote_identifier(indexName) << std::flush; perform_void_exec(this->get_connection().get(), ss.str()); } @@ -18581,7 +18581,7 @@ namespace sqlite_orm { if(ifExists) { ss << " IF EXISTS"; } - ss << quote_identifier(triggerName) << std::flush; + ss << ' ' << quote_identifier(triggerName) << std::flush; perform_void_exec(this->get_connection().get(), ss.str()); }