From cf18eecd704f5eb6fde4e0c362cfdb322e3e559a Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 25 Nov 2007 03:28:49 +0000 Subject: - named_with_column becomes an attribute - cleanup within compiler visit_select(), column labeling - is_select() removed from dialects, replaced with returns_rows_text(), returns_rows_compiled() - should_autocommit() removed from dialects, replaced with should_autocommit_text() and should_autocommit_compiled() - typemap and column_labels collections removed from Compiler, replaced with single "result_map" collection. - ResultProxy uses more succinct logic in combination with result_map to target columns --- test/dialect/postgres.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/dialect/postgres.py') diff --git a/test/dialect/postgres.py b/test/dialect/postgres.py index 82f41f80a..4affabb6c 100644 --- a/test/dialect/postgres.py +++ b/test/dialect/postgres.py @@ -101,6 +101,9 @@ class ReturningTest(AssertMixin): result3 = table.insert(postgres_returning=[(table.c.id*2).label('double_id')]).execute({'persons': 4, 'full': False}) self.assertEqual([dict(row) for row in result3], [{'double_id':8}]) + + result4 = testbase.db.execute('insert into tables (id, persons, "full") values (5, 10, true) returning persons') + self.assertEqual([dict(row) for row in result4], [{'persons': 10}]) finally: table.drop() -- cgit v1.2.1