mirror of https://github.com/zulip/zulip.git
migrations: Fix do_batch_update for postgres 10.
Apparently, our do_batch_update method (used, e.g., in a pgroonga migration) was using semi-invalid syntax that was removed in postgres 10. Thanks to Ilya Evseev for the report. Fixes #11063.
This commit is contained in:
parent
2cca6a1be8
commit
430ed061c1
|
@ -40,7 +40,7 @@ def do_batch_update(cursor: CursorObj,
|
|||
escape: bool=True) -> None: # nocoverage
|
||||
stmt = '''
|
||||
UPDATE %s
|
||||
SET (%s) = (%s)
|
||||
SET (%s) = ROW(%s)
|
||||
WHERE id >= %%s AND id < %%s
|
||||
''' % (table, ', '.join(cols), ', '.join(['%s'] * len(cols)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue