CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 4.1 -> 4.2 Error 1292: Truncated incorrect DOUBLE value: 'contribution_amount'
Pages: [1]

Author Topic: 4.1 -> 4.2 Error 1292: Truncated incorrect DOUBLE value: 'contribution_amount'  (Read 1251 times)

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
4.1 -> 4.2 Error 1292: Truncated incorrect DOUBLE value: 'contribution_amount'
December 10, 2012, 10:24:42 am
Since I can't find any other posts about this problem I thought I'd document it here. When upgrading from 4.1 -> 4.2 I get:
DB_Error: Upgrade DB to 4.2.alpha1: SQL
INSERT INTO civicrm_price_field_value ( price_field_id, name, label, description, amount, membership_type_id) SELECT cpf.id, cmt.name as label1, cmt.name as label2,cmt.description, cmt.minimum_fee, cmt.id FROM `civicrm_membership_type` cmt LEFT JOIN civicrm_price_field cpf ON cmt.member_of_contact_id = cpf.name [nativecode=1292 ** Truncated incorrect DOUBLE value: 'contribution_amount']

I get this when testing on a sample db and also on a few live dbs. So far I've been unable to make sense of the reference to 'contribution_amount' in the error msg because that is not a column in any table in the db nor is it a value retrieved by that SELECT statement in the INSERT. All the values from the select look normal, but when I run that query on its own in the partially upgraded db I get the same error.

MySQL: 5.5.28-0ubuntu0.12.10.1
Apache: 2.2.22 (Ubuntu)

I'll check to see if upgrading MySQL helps.
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: 4.1 -> 4.2 Error 1292: Truncated incorrect DOUBLE value: 'contribution_amount'
December 10, 2012, 11:01:23 am
Upgraded MySQL to 5.5.28-0ubuntu0.12.10.2
Also tried explicitly casting the amount field to a string, and even tried substituting the literal 'abc' instead of cmt.minimum_fee in the SELECT part. No dice.
Try asking your question on the new CiviCRM help site.

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: 4.1 -> 4.2 Error 1292: Truncated incorrect DOUBLE value: 'contribution_amount'
December 10, 2012, 02:22:27 pm
Ok, was able to confirm this issue with lobo and totten.
Filed as http://issues.civicrm.org/jira/browse/CRM-11446
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • 4.1 -> 4.2 Error 1292: Truncated incorrect DOUBLE value: 'contribution_amount'

This forum was archived on 2017-11-26.