summaryrefslogtreecommitdiff
path: root/test/sql/test_functions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-05-13 15:26:53 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-05-13 15:26:53 -0400
commit0a8f2207f0874c9639a2968e18bce88e6cb55c69 (patch)
treede1eff7604d36c120c49231a8c6da003287884c1 /test/sql/test_functions.py
parent20f5a481686c273924c06537d661aa69a6a566cc (diff)
downloadsqlalchemy-0a8f2207f0874c9639a2968e18bce88e6cb55c69.tar.gz
- func.XXX() doesn't inadvertently resolve to non-Function
classes (e.g. fixes func.text()). [ticket:1798]
Diffstat (limited to 'test/sql/test_functions.py')
-rw-r--r--test/sql/test_functions.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py
index 1784af37f..c9bb8348c 100644
--- a/test/sql/test_functions.py
+++ b/test/sql/test_functions.py
@@ -69,7 +69,10 @@ class CompileTest(TestBase, AssertsCompiledSQL):
('random', oracle.dialect())
]:
self.assert_compile(func.random(), ret, dialect=dialect)
-
+
+ def test_namespacing_conflicts(self):
+ self.assert_compile(func.text('foo'), 'text(:text_1)')
+
def test_generic_count(self):
assert isinstance(func.count().type, sqltypes.Integer)