If user accidentally key in the value "0.", there will be an error below:
PDOException: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'field_probability_of_winning_weight' at row 1: INSERT INTO {field_data_field_probability_of_winning} (entity_type, entity_id, revision_id, bundle, delta, language, field_probability_of_winning_weight) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 1634 [:db_insert_placeholder_2] => 3104 [:db_insert_placeholder_3] => lucky_dip_prize [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 0. ) in field_sql_storage_field_storage_write() (line 514 of
Comments
Comment #2
grisendo CreditAttribution: grisendo at The NodeHub commentedThanks for reporting!
Comment #3
Ashok Negi CreditAttribution: Ashok Negi at Srijan | A Material+ Company commented@limwork Can you be a little more specific as to how the error can be reproduced?