]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Add TRUNCATE to postgres autocommit regexp
authorJacob Hayes <jacob.r.hayes@gmail.com>
Fri, 15 Dec 2017 14:56:59 +0000 (09:56 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 18 Dec 2017 16:33:37 +0000 (11:33 -0500)
commitfe84543cc78027d7c60b627d27164cdbb90cf622
tree9ee5d9f88a6d52bf1c03e8b6172d0af77ce7da29
parent0018127e47c4a056ea0b18db696130703391766d
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
(cherry picked from commit 756d5782870029f2d97b1aa171abd61dbf4cbcb4)
doc/build/changelog/unreleased_11/pg_truncate.rst [new file with mode: 0644]
lib/sqlalchemy/dialects/postgresql/base.py
test/dialect/postgresql/test_dialect.py