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.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py
index 091fdeda2..69b0fb040 100644
--- a/lib/sqlalchemy/dialects/postgresql/base.py
+++ b/lib/sqlalchemy/dialects/postgresql/base.py
@@ -1020,17 +1020,17 @@ class PGCompiler(compiler.SQLCompiler):
else:
tmp = " FOR UPDATE"
- if select._for_update_arg.nowait:
- tmp += " NOWAIT"
-
if select._for_update_arg.of:
# TODO: assuming simplistic c.table here
tables = set(c.table for c in select._for_update_arg.of)
tmp += " OF " + ", ".join(
- self.process(table, asfrom=True)
+ self.process(table, ashint=True)
for table in tables
)
+ if select._for_update_arg.nowait:
+ tmp += " NOWAIT"
+
return tmp
def returning_clause(self, stmt, returning_cols):