A select(X).from_statement(insert(...).returning(...)) is confusingly marked as a is_select=True in SQLAlchemy's ORMExecuteState. This PR integrates additional security measures in the Query Rewriter to ensure that we are only operating on Select-like statements.
A
select(X).from_statement(insert(...).returning(...))
is confusingly marked as ais_select=True
in SQLAlchemy's ORMExecuteState. This PR integrates additional security measures in the Query Rewriter to ensure that we are only operating onSelect
-like statements.