Skip to content

Status changes can die with an SQL error on the author counters #455

Description

@ECYaz

change_author_contrib_count() subtracts author_contribs and the per-type counter (author_styles, author_mods) in one UPDATE guarded only by author_contribs > 0. The columns are unsigned, so when a per-type counter is already at zero the subtraction fails with SQL error 1690 and the whole action dies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions