I have a table with the following fields:
id=autoincrement, int (11)
ts_h=decimal
ts_pid=int (11)
ts_day=text
There is a unique record where ts_pid=60 and ts_day="20020328000000"
(ts_h=0).
If I do [update t_timesheet set ts_h=0 where ts_pid=60 and
ts_day="20020328000000" ], every thing works fine. (nothing is changed
because the values remain the same)
But if I change the query to ts_h=1:
[update t_timesheet set ts_h=1 where ts_pid=60 and
ts_day="20020328000000" ]
The record is deleted instead of being update.
I changed ts_h to a decimal, or integer, same behavior. It deletes my record
instead of updating it.
Any idea why this occurs?
Thank you.
Jean-Louis
---------------------------------------------------------------------
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