Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.12.2

Request #13193 'auto_increment' feature in tableInfo() for sqlite
Submitted: 2008-02-25 09:01 UTC
From: rpuchkovskiy Assigned: aharvey
Status: Closed Package: DB (version 1.7.13)
PHP Version: Irrelevant OS:
Roadmaps: 1.7.14RC2    
Subscription  


 [2008-02-25 09:01 UTC] rpuchkovskiy (Roman Puchkovskiy)
Description: ------------ Sqlite supports auto-incremented columns (integer primary key is auto-incremented), but current implementation of tableInfo() does not return this information. I suggest adding following lines // integer primary key is autoincremented... if (strtoupper($type) == "INTEGER" && $id[$i]['pk']) { $flags .= 'auto_increment '; } below these lines if ($id[$i]['dflt_value'] !== null) { $flags .= 'default_' . rawurlencode($id[$i]['dflt_value']); } in tableInfo() method of DB/sqlite.php. This will return 'auto_increment' feature for auto-incremented columns.

Comments

 [2010-12-24 12:24 UTC] aharvey (Adam Harvey)
-Status: Open +Status: Closed -Assigned To: +Assigned To: aharvey
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.