diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-10 15:00:21 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-03-10 15:00:21 -0400 |
| commit | 7ac81f6d0a8481fdd6e5832648ae1ad973da19e4 (patch) | |
| tree | ea13300c33a6c9aa17a447d7fc37cde1fe3dfbad /test/dialect | |
| parent | 9d617468a66197ce13c85028889fc3b9965bd78c (diff) | |
| parent | 955576fcf6e7aff7fe924ec3b33bb6d243ddd312 (diff) | |
| download | sqlalchemy-7ac81f6d0a8481fdd6e5832648ae1ad973da19e4.tar.gz | |
Merge branch 'postgres-concurrently' of https://bitbucket.org/iurisilvio/sqlalchemy into pr45
Diffstat (limited to 'test/dialect')
| -rw-r--r-- | test/dialect/postgresql/test_compiler.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dialect/postgresql/test_compiler.py b/test/dialect/postgresql/test_compiler.py index 5717df9f7..aa3f80fdc 100644 --- a/test/dialect/postgresql/test_compiler.py +++ b/test/dialect/postgresql/test_compiler.py @@ -389,6 +389,16 @@ class CompileTest(fixtures.TestBase, AssertsCompiledSQL): "CREATE INDEX test_idx1 ON testtbl ((data + 5))" ) + def test_create_index_concurrently(self): + m = MetaData() + tbl = Table('testtbl', m, Column('data', Integer)) + + idx1 = Index('test_idx1', tbl.c.data, postgresql_concurrently=True) + self.assert_compile( + schema.CreateIndex(idx1), + "CREATE INDEX CONCURRENTLY test_idx1 ON testtbl (data)" + ) + def test_exclude_constraint_min(self): m = MetaData() tbl = Table('testtbl', m, |
