diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-10-27 17:41:30 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-10-27 17:41:30 +0000 |
| commit | 4a4daad81a6c5f987ac6eba0afdaccb3a70554f8 (patch) | |
| tree | c5d4286d3b318774a518f31a31a66e99286c0a1e /test/dialect/sqlite.py | |
| parent | cba1e9a01ef292a5bb7fdd4e0c62f4f7509f38b9 (diff) | |
| download | sqlalchemy-4a4daad81a6c5f987ac6eba0afdaccb3a70554f8.tar.gz | |
- removed regular expression step from most statement compilations.
also fixes [ticket:833]
- inlining on PG with_returning() call
- extra options added for profiling
Diffstat (limited to 'test/dialect/sqlite.py')
| -rw-r--r-- | test/dialect/sqlite.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/dialect/sqlite.py b/test/dialect/sqlite.py index 285921588..f3eac38f9 100644 --- a/test/dialect/sqlite.py +++ b/test/dialect/sqlite.py @@ -157,6 +157,21 @@ class InsertTest(AssertMixin): Column('x', Integer), Column('y', Integer))) + @testing.supported('sqlite') + def test_inserts_with_spaces(self): + tbl = Table('tbl', MetaData('sqlite:///'), + Column('with space', Integer), + Column('without', Integer)) + tbl.create() + try: + tbl.insert().execute({'without':123}) + assert list(tbl.select().execute()) == [(None, 123)] + tbl.insert().execute({'with space':456}) + assert list(tbl.select().execute()) == [(None, 123), (456, None)] + + finally: + tbl.drop() + if __name__ == "__main__": testbase.main() |
