From cfca625e9445f9c52fe20c6542dd7268f2c55b6d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 7 Nov 2008 22:36:21 +0000 Subject: docstring updates --- test/sql/select.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/sql') 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): -- cgit v1.2.1