Key updating after insert is triggering validations

Issue #3167 resolved
Mario Benito Ríos
created an issue

With MySQL backend, on commit after creating a new object with "autoincrement" PK, key updating is triggering validator. See

Documentation says only user assignments trigger validations, so this case shouldn't trigger validation.

Comments (4)

  1. Michael Bayer repo owner
    • Fixed bug where attribute "set" events or columns with @validates would have events triggered within the flush process, when those columns were the targets of a "fetch and populate" operation, such as an autoincremented primary key, a Python side default, or a server-side default "eagerly" fetched via RETURNING. fixes #3167

    → <<cset 530d3f07e0c1>>

  2. Log in to comment