summaryrefslogtreecommitdiff
path: root/test/sql/test_quote.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-12-05 00:46:11 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2010-12-05 00:46:11 -0500
commit8e24584d8d242d40d605752116ac05be33f697d3 (patch)
tree3bd83f533b0743e4eef7f377e74a62d60adc4995 /test/sql/test_quote.py
parentaf75fdf60fd3498ab3c5757e81a5d6b5e52f590d (diff)
downloadsqlalchemy-8e24584d8d242d40d605752116ac05be33f697d3.tar.gz
- ResultProxy and friends always reference the DBAPI connection at the same time
as the cursor. There is no reason for CursorFairy - the only use case would be, end-user is using the pool or pool.manage with DBAPI connections, uses a cursor, deferences the owning connection and continues using cursor. This is an almost nonexistent use case and isn't correct usage at a DBAPI level. Take out CursorFairy. - move the "check for a dot in the colname" logic out to the sqlite dialect.
Diffstat (limited to 'test/sql/test_quote.py')
-rw-r--r--test/sql/test_quote.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/sql/test_quote.py b/test/sql/test_quote.py
index 8f27a7b3c..e880388d7 100644
--- a/test/sql/test_quote.py
+++ b/test/sql/test_quote.py
@@ -140,7 +140,9 @@ class QuoteTest(TestBase, AssertsCompiledSQL):
if labels arent quoted, a query in postgresql in particular will fail since it produces:
SELECT LaLa.lowercase, LaLa."UPPERCASE", LaLa."MixedCase", LaLa."ASC"
- FROM (SELECT DISTINCT "WorstCase1".lowercase AS lowercase, "WorstCase1"."UPPERCASE" AS UPPERCASE, "WorstCase1"."MixedCase" AS MixedCase, "WorstCase1"."ASC" AS ASC \nFROM "WorstCase1") AS LaLa
+ FROM (SELECT DISTINCT "WorstCase1".lowercase AS lowercase,
+ "WorstCase1"."UPPERCASE" AS UPPERCASE,
+ "WorstCase1"."MixedCase" AS MixedCase, "WorstCase1"."ASC" AS ASC \nFROM "WorstCase1") AS LaLa
where the "UPPERCASE" column of "LaLa" doesnt exist.
"""