summaryrefslogtreecommitdiff
path: root/test/sql
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-11-07 22:36:21 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-11-07 22:36:21 +0000
commitcfca625e9445f9c52fe20c6542dd7268f2c55b6d (patch)
tree7ef8bba43e4b12757cb991519f56ec9c874212f4 /test/sql
parentf4db07281554b1ccf2588f4996db98a2c9c82122 (diff)
downloadsqlalchemy-cfca625e9445f9c52fe20c6542dd7268f2c55b6d.tar.gz
docstring updates
Diffstat (limited to 'test/sql')
-rw-r--r--test/sql/select.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/sql/select.py b/test/sql/select.py
index e959a7992..91585e37e 100644
--- a/test/sql/select.py
+++ b/test/sql/select.py
@@ -2,7 +2,7 @@ import testenv; testenv.configure_for_tests()
import datetime, re, operator
from sqlalchemy import *
from sqlalchemy import exc, sql, util
-from sqlalchemy.sql import table, column, compiler
+from sqlalchemy.sql import table, column, label, compiler
from sqlalchemy.engine import default
from sqlalchemy.databases import sqlite, postgres, mysql, oracle, firebird, mssql
from testlib import *
@@ -339,6 +339,7 @@ sq.myothertable_othername AS sq_myothertable_othername FROM (" + sqstring + ") A
x = func.lala(table1.c.myid).label('foo')
self.assert_compile(select([x], x==5), "SELECT lala(mytable.myid) AS foo FROM mytable WHERE lala(mytable.myid) = :param_1")
+ self.assert_compile(label('bar', column('foo', type_=String)) + "foo", "foo || :param_1")
def test_conjunctions(self):