renamed sql_command enum names

This commit is contained in:
Sascha Kühl
2026-01-23 09:22:27 +01:00
parent d13ccc861e
commit 15f959b24e
3 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ std::shared_ptr<class producer_resolver_factory> connection::resolver_factory()
}
utils::result<std::unique_ptr<statement_impl>, utils::error> connection::perform_prepare(const query_context& ctx) const {
if (ctx.command != sql_command::SQL_CREATE_TABLE && (ctx.prototype.empty() || has_unknown_columns(ctx.prototype))) {
if (ctx.command != sql_command::CreateTable && (ctx.prototype.empty() || has_unknown_columns(ctx.prototype))) {
if (const auto result = describe(ctx.table_name); result.is_ok()) {
for (auto &col: ctx.prototype) {
const auto rit = std::find_if(