note 82596 added to function.sqlite-exec
| From: | nonproffessional at clockworkgeek dot com | Date: | Thu, 17 Apr 2008 19:01:55 +0000 |
| Subject: | note 82596 added to function.sqlite-exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138417@lists.php.net to get a copy of this message | ||
Just to point out that "CREATE TABLE IF NOT EXISTS" is only supported in SQLite version
3.3.0 or above. And PHP (currently 5.2.5) only comes with SQLite version 2.1.
Executing a create table like this will throw an error as will creating a table that already exists.
Instead execute a normal "CREATE TABLE" command and catch it with "try {..}
catch".
----
Server IP: 92.48.100.16
Probable Submitter: 89.145.198.195
----
Manual Page -- http://www.php.net/manual/en/function.sqlite-exec.php
Edit -- https://master.php.net/note/edit/82596
Del: integrated -- https://master.php.net/note/delete/82596/integrated
Del: useless -- https://master.php.net/note/delete/82596/useless
Del: bad code -- https://master.php.net/note/delete/82596/bad+code
Del: spam -- https://master.php.net/note/delete/82596/spam
Del: non-english -- https://master.php.net/note/delete/82596/non-english
Del: in docs -- https://master.php.net/note/delete/82596/in+docs
Del: other reasons-- https://master.php.net/note/delete/82596
Reject -- https://master.php.net/note/reject/82596
Search -- https://master.php.net/manage/user-notes.php