]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
update quoted_name doc
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Aug 2022 13:26:47 +0000 (09:26 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 4 Aug 2022 13:26:47 +0000 (09:26 -0400)
Fixes: #8339
Change-Id: If78bc9babfdc6a4dde4e65d72858ac7a402cbb4d

lib/sqlalchemy/sql/elements.py

index 71459f6794d6b504910d39faa5147dc13a5dfb1c..29dfdc20c4ec289fc9f5123dc7a3673ad6e4ddc8 100644 (file)
@@ -4825,10 +4825,11 @@ class quoted_name(util.MemoizedSlots, str):
     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