LeTortorec, Tuesday, April 09, 2002, 12:17:06 AM, you wrote: Leoen> I have a table with the following fields: Leoen> id=autoincrement, int (11) Leoen> ts_h=decimal Leoen> ts_pid=int (11) Leoen> ts_day=text Leoen> There is a unique record where ts_pid=60 and ts_day="20020328000000" Leoen> (ts_h=0). Leoen> If I do [update t_timesheet set ts_h=0 where ts_pid=60 and Leoen> ts_day="20020328000000" ], every thing works fine. (nothing is changed Leoen> because the values remain the same) Leoen> But if I change the query to ts_h=1: Leoen> [update t_timesheet set ts_h=1 where ts_pid=60 and Leoen> ts_day="20020328000000" ] Leoen> The record is deleted instead of being update. Leoen> I changed ts_h to a decimal, or integer, same behavior. It deletes my record Leoen> instead of updating it. Leoen> Any idea why this occurs?
What version of MySQL do you use? Can you create a test case for this? Leoen> Thank you. Leoen> Jean-Louis -- For technical support contracts, goto https://order.mysql.com/ This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php