note 97093 deleted from function.sqlite-changes by danbrown
| From: | danbrown@php.net | Date: | Thu, 01 Apr 2010 05:38:19 +0000 |
| Subject: | note 97093 deleted from function.sqlite-changes by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167606@lists.php.net to get a copy of this message | ||
Note Submitter: jazz at funkynerd dot com
----
I had the same problem as bermi ferrer when executing DELETEs.
I found that adding an always true WHERE clause returns the number of rows deleted.
eg: "DELETE FROM my_table WHERE 1" will delete all the rows and sqlite_changes() will
return the correct number of rows deleted.