summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-08-04 09:26:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-08-04 09:28:14 -0400
commit4a50ec453543cc9fb76bb1a57d539d31207e7c35 (patch)
tree217f920ebf48a11daad53667994487c1e149c05b /lib/sqlalchemy
parent042b844245b1c0dc3cea6fe555ab8859ea92c258 (diff)
downloadsqlalchemy-4a50ec453543cc9fb76bb1a57d539d31207e7c35.tar.gz
update quoted_name doc
Fixes: #8339 Change-Id: If78bc9babfdc6a4dde4e65d72858ac7a402cbb4d (cherry picked from commit dc5a1c482ee1a8faf15fd81db866e5f72c1c719f)
Diffstat (limited to 'lib/sqlalchemy')
-rw-r--r--lib/sqlalchemy/sql/elements.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index c9cea23da..268c0d6ac 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -5149,10 +5149,11 @@ class quoted_name(util.MemoizedSlots, util.text_type):
an unconditionally quoted name::
from sqlalchemy import create_engine
+ from sqlalchemy import inspect
from sqlalchemy.sql import quoted_name
engine = create_engine("oracle+cx_oracle://some_dsn")
- engine.has_table(quoted_name("some_table", True))
+ print(inspect(engine).has_table(quoted_name("some_table", True)))
The above logic will run the "has table" logic against the Oracle backend,
passing the name exactly as ``"some_table"`` without converting to