diff --git a/zerver/lib/migrate.py b/zerver/lib/migrate.py index d812abb264..ca66e60518 100644 --- a/zerver/lib/migrate.py +++ b/zerver/lib/migrate.py @@ -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)))