~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to test/sql/test_quote.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
443
443
                '"Anon".Col1 = :Col1_1'
444
444
        )
445
445
 
 
446
    def test_simple_order_by_label(self):
 
447
        m = MetaData()
 
448
        t1 = Table('t1', m, Column('col1', Integer))
 
449
        cl = t1.c.col1.label('ShouldQuote')
 
450
        self.assert_compile(
 
451
            select([cl]).order_by(cl),
 
452
            'SELECT t1.col1 AS "ShouldQuote" FROM t1 ORDER BY "ShouldQuote"'
 
453
        )
 
454
 
446
455
    def test_join(self):
447
456
        # Lower case names, should not quote
448
457
        metadata = MetaData()