Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-11699

4.2.alpha1 upgrade stage fails on negative contribution amount

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.3.0
    • Fix Version/s: 4.2.8
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      The error comes from work/civicrm/CRM/Upgrade/Incremental/sql/4.2.alpha1.mysql.tpl,

      INSERT INTO civicrm_line_item ( entity_table, entity_id, price_field_id, label, qty, unit_price, line_total, participant_count, price_field_value_id )
      SELECT 'civicrm_contribution', cc.id, @fieldID, 'Contribution Amount', ROUND(total_amount,0), '1.00', total_amount , 0, @fieldValueID

      If total_amount < 0, the query fails with "value out of range", because the column is unsigned.

        Attachments

          Activity

            People

            • Assignee:
              adamw Adam Wight
              Reporter:
              adamw Adam Wight
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: