summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/dialects/postgresql/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/dialects/postgresql/base.py')
-rw-r--r--lib/sqlalchemy/dialects/postgresql/base.py2
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"