diff --git a/edb/pgsql/resolver/command.py b/edb/pgsql/resolver/command.py index 9e5aa8e7747..d9a76684f4a 100644 --- a/edb/pgsql/resolver/command.py +++ b/edb/pgsql/resolver/command.py @@ -1397,7 +1397,7 @@ def _compile_uncompiled_dml( ql_aliases.append( qlast.AliasedExpr( alias=name, - expr=qlast.DetachedExpr(expr=stmt.ql_stmt), + expr=stmt.ql_stmt, ) ) ql_stmt_shape.append(