summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/sql/elements.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/sql/elements.py')
-rw-r--r--lib/sqlalchemy/sql/elements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index a9f21cd5f..3d6643503 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -150,7 +150,7 @@ def literal(value, type_=None):
will provide bind-parameter translation for this literal.
"""
- return BindParameter(None, value, type_=type_, unique=True)
+ return coercions.expect(roles.LiteralValueRole, value, type_=type_)
def outparam(key, type_=None):