note 5279 deleted from mysql_query by ronabop
| From: | ronabop@php.net | Date: | Sat, 12 Aug 2000 22:32:08 +0000 |
| Subject: | note 5279 deleted from mysql_query by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-1702@lists.php.net to get a copy of this message | ||
I have a query updating a table with a unique-index on a few columns. If I execute a mysql_query()
that sets 2 records to the same value (that's not possible because of the unique index) I still
get a return-value of TRUE!
If I run that same query in mysql myself I get the error-message: "ERROR 1062: Duplicate entry
'...' for key 2".
I think... that is an error that should return FALSE in mysql_query() too.
Does anybody know how to detect this for error-handling? cu jan