summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/exc.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-04-04 21:43:12 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-04-04 21:44:49 -0400
commit6845be0927245e47c27f8e160472cf9a55a41dc4 (patch)
treecf64489de6a6f9138f39bb1e1d7ab769b7a7cfef /lib/sqlalchemy/exc.py
parent97d4d15fde7999eba29c9708b65e11d82623f686 (diff)
downloadsqlalchemy-6845be0927245e47c27f8e160472cf9a55a41dc4.tar.gz
Enhance documentation for string compilation use cases
- Add a web link for UnsupportedCompilationError - Add new section to errors.rst - add more detail and cross-linking to the FAQ - include security caveats for parameter rendering Fixes: #4595 Change-Id: I31ea57c18d65770cd2a51276bbe2847a9eb72bba
Diffstat (limited to 'lib/sqlalchemy/exc.py')
-rw-r--r--lib/sqlalchemy/exc.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sqlalchemy/exc.py b/lib/sqlalchemy/exc.py
index 5ce2d5df2..1e575626a 100644
--- a/lib/sqlalchemy/exc.py
+++ b/lib/sqlalchemy/exc.py
@@ -154,8 +154,15 @@ class CompileError(SQLAlchemyError):
class UnsupportedCompilationError(CompileError):
"""Raised when an operation is not supported by the given compiler.
+ .. seealso::
+
+ :ref:`faq_sql_expression_string`
+
+ :ref:`error_l7de`
"""
+ code = "l7de"
+
def __init__(self, compiler, element_type):
super(UnsupportedCompilationError, self).__init__(
"Compiler %r can't render element of type %s"