PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect decimal value: '' for column 'start_price' at row 1: INSERT INTO {uc_auction} (nid, expiry, start_price, bid_increment, min_increase, max_increase, max_increase_pctg) 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] => 7 [:db_insert_placeholder_1] => 1324149780 [:db_insert_placeholder_2] => [:db_insert_placeholder_3] => [:db_insert_placeholder_4] => [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => ) in drupal_write_record() (line 6884 of /home/rahul/public_html/d7/includes/common.inc).
Comments
Comment #1
nohup commentedAdded check for is_auction ture.
Changes committed to git
Comment #3
GraemeCampbell commentedI'm getting the same same error when I edit a non-auction item.
Comment #4
GraemeCampbell commentedComment #5
friendswoodtech commentedThis issue still exists. Any assistance in resolving would be greatly appreciated.
Comment #6
kalabroForgot about hook_node_update().
Patch attached. Thanks!
Comment #7
kalabroMore accurate patch. Use it instead of previous. Thanks!
Comment #8
loziju commentedPatch in #1367198-7: SQL exception editing product if not auction failed because of wrong original code. It should be
if (isset($node->is_auction)){instead ofif (!empty($node->is_auction)){. Attaching the correct patch.