diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-31 15:58:51 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2006-10-31 15:58:51 +0000 |
| commit | f60151ebd3abc59327e2939e4513e58db1c48e46 (patch) | |
| tree | a3a3c79c1cbe69991aaecf82879ddd0bd43e135f /test/sql/query.py | |
| parent | 0bcace02152a19255dc4603910261925474a52b1 (diff) | |
| download | sqlalchemy-f60151ebd3abc59327e2939e4513e58db1c48e46.tar.gz | |
- fixed direct execution of Compiled objects
Diffstat (limited to 'test/sql/query.py')
| -rw-r--r-- | test/sql/query.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/sql/query.py b/test/sql/query.py index 2c92a4932..96ad6ec8b 100644 --- a/test/sql/query.py +++ b/test/sql/query.py @@ -50,7 +50,12 @@ class QueryTest(PersistTest): for row in r: l.append(row) self.assert_(len(l) == 3) - + + def test_compiled_execute(self): + s = select([self.users], self.users.c.user_id==bindparam('id')).compile() + c = testbase.db.connect() + print repr(c.execute(s, id=7).fetchall()) + def test_global_metadata(self): t1 = Table('table1', Column('col1', Integer, primary_key=True), Column('col2', String(20))) |
