summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/testing')
-rw-r--r--lib/sqlalchemy/testing/assertions.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py
index c66ba71c3..a51d831a9 100644
--- a/lib/sqlalchemy/testing/assertions.py
+++ b/lib/sqlalchemy/testing/assertions.py
@@ -498,6 +498,7 @@ class AssertsCompiledSQL:
default_schema_name=None,
from_linting=False,
check_param_order=True,
+ use_literal_execute_for_simple_int=False,
):
if use_default_dialect:
dialect = default.DefaultDialect()
@@ -541,6 +542,9 @@ class AssertsCompiledSQL:
if render_postcompile:
compile_kwargs["render_postcompile"] = True
+ if use_literal_execute_for_simple_int:
+ compile_kwargs["use_literal_execute_for_simple_int"] = True
+
if for_executemany:
kw["for_executemany"] = True