From 0a8f2207f0874c9639a2968e18bce88e6cb55c69 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 13 May 2010 15:26:53 -0400 Subject: - func.XXX() doesn't inadvertently resolve to non-Function classes (e.g. fixes func.text()). [ticket:1798] --- test/sql/test_functions.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/sql/test_functions.py') 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) -- cgit v1.2.1