• Varun Gupta's avatar
    MDEV-18100: User defined aggregate functions not working correctly when the schema is changed · d49233ca
    Varun Gupta authored
    The issue here was that when the schema was changed the value for the THD::server_status
    is ored with SERVER_SESSION_STATE_CHANGED.
    For custom aggregate functions, currently we check if the server_status is equal to
    SERVER_STATUS_LAST_ROW_SENT then we should terminate the execution of the custom
    aggregate function as there are no more rows to fetch.
    So the check should be that if the server status has the bit set for
    SERVER_STATUS_LAST_ROW_SENT then we should terminate the execution of the
    custom aggregate function.
    d49233ca
custom_aggregate_functions.test 23.7 KB