diff options
| author | Jacob Hayes <jacob.r.hayes@gmail.com> | 2017-12-15 09:56:59 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2017-12-18 11:33:09 -0500 |
| commit | 756d5782870029f2d97b1aa171abd61dbf4cbcb4 (patch) | |
| tree | 3dac92daa83fd7e2dcdacb858e43d0fef4e547ec /test/dialect/postgresql | |
| parent | 19e13cf3d203b59ad285ab0193cb9fc53c4fcff2 (diff) | |
| download | sqlalchemy-756d5782870029f2d97b1aa171abd61dbf4cbcb4.tar.gz | |
Add TRUNCATE to postgres autocommit regexp
Extends AUTOCOMMIT_REGEXP for the postgres dialect to include `TRUNCATE`.
Change-Id: I315e03674b89bb89aae669b8655481e4d890491e
Pull-request: https://github.com/zzzeek/sqlalchemy/pull/407
Diffstat (limited to 'test/dialect/postgresql')
| -rw-r--r-- | test/dialect/postgresql/test_dialect.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/dialect/postgresql/test_dialect.py b/test/dialect/postgresql/test_dialect.py index 29aa62e3f..3db7fef48 100644 --- a/test/dialect/postgresql/test_dialect.py +++ b/test/dialect/postgresql/test_dialect.py @@ -418,3 +418,6 @@ class AutocommitTextTest(test_execute.AutocommitTextTest): def test_revoke(self): self._test_keyword("REVOKE USAGE ON SCHEMA fooschema FROM foorole") + + def test_truncate(self): + self._test_keyword("TRUNCATE footable") |
