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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index 1f8129382..001c3d042 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -3905,8 +3905,8 @@ class quoted_name(util.MemoizedSlots, util.text_type):
can be quoted. Such as to use the :meth:`.Engine.has_table` method with
an unconditionally quoted name::
- from sqlaclchemy import create_engine
- from sqlalchemy.sql.elements import quoted_name
+ from sqlalchemy import create_engine
+ from sqlalchemy.sql import quoted_name
engine = create_engine("oracle+cx_oracle://some_dsn")
engine.has_table(quoted_name("some_table", True))
@@ -3917,6 +3917,10 @@ class quoted_name(util.MemoizedSlots, util.text_type):
.. versionadded:: 0.9.0
+ .. versionchanged:: 1.2 The :class:`.quoted_name` construct is now
+ importable from ``sqlalchemy.sql``, in addition to the previous
+ location of ``sqlalchemy.sql.elements``.
+
"""
__slots__ = 'quote', 'lower', 'upper'