Typo regarding server_onupdate in Column.__init__

Issue #2147 resolved
Former user created an issue

(I'm not sure this actually affects anything, but) there appears to be a trivial typo (copy-and-pasto, really) at source:lib/sqlalchemy/schema.py#L839. Suggested patch:

        if self.server_onupdate is not None:
            if isinstance(self.server_onupdate, FetchedValue):
-               args.append(self.server_default)
+               args.append(self.server_onupdate)
            else:
                args.append(DefaultClause(self.server_onupdate,
                                            for_update=True))

Comments (3)

  1. Log in to comment