diff options
author | Sergey Skopin <prn.s_skopin@wargaming.net> | 2016-05-31 12:59:47 +0300 |
---|---|---|
committer | Sergey Skopin <prn.s_skopin@wargaming.net> | 2016-05-31 12:59:47 +0300 |
commit | 9b4e47bc6471d68c135817f39625aa471804090e (patch) | |
tree | 72003fa1448408015a8070a4419a1b9606ce9b3b /lib/sqlalchemy/dialects/postgresql/base.py | |
parent | c124fa36d5af2c85c87c51d24e92387adffbe3d2 (diff) | |
download | sqlalchemy-pr/279.tar.gz |
Add 'FOR NO KEY UPDATE' supportpr/279
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r-- | lib/sqlalchemy/dialects/postgresql/base.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 9d019b56e..5407aa4be 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -1159,6 +1159,8 @@ class PGCompiler(compiler.SQLCompiler): if select._for_update_arg.read: tmp = " FOR SHARE" + elif select._for_update_arg.no_key: + tmp = " FOR NO KEY UPDATE" else: tmp = " FOR UPDATE" |