I had a problem with mysql locking up when I was running a query directly against the sugar db in phpmyadmin so I upgraded to mysql 5.0.22. Everything seemed as if it was running fine but this morning a user mentioned that when she was entering data into a custom contact field (a date one) that it wasn't getting saved. I ran the debug logging and see this error:
08/24/06 10:03:50,920 [3600] INFO SugarCRM - Query:INSERT INTO contacts_cstm (id_c ,date_of_hire_c ,date_of_term_c ,ssn_c ) VALUES ('e7660b2c-f819-1017-a34a-44edce031b18' ,'2005-01-31' ,'' ,'' )
08/24/06 10:03:50,920 [3600] INFO SugarCRM - Query Execution Time:0.00019200000000008
08/24/06 10:03:50,921 [3600] ERROR SugarCRM - MySQL error 1292: Incorrect date value: '' for column 'date_of_term_c' at row 1
Now it I want to enter a date_of_hire then I also have to put '0000-00-00' into the date_of_term field. I'll always have to do this because it seems as if sugar won't pick up a date of '0000-00-00' from the database. Does anybody know of a fix to this?


LinkBack URL
About LinkBacks



Reply With Quote

Bookmarks