X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=extlib%2FDB%2Fsqlite.php;h=7adfb4c475a292140b796767145f3c92f144b2e0;hb=10f2cde0b1d75fa023b00400162cb525e8719514;hp=5c4b396e5ed46bfda7359d34fcf218207c3a4d5d;hpb=8884a5255fb90fda67b63fa0d4252d77176337e5;p=quix0rs-gnu-social.git diff --git a/extlib/DB/sqlite.php b/extlib/DB/sqlite.php index 5c4b396e5e..7adfb4c475 100644 --- a/extlib/DB/sqlite.php +++ b/extlib/DB/sqlite.php @@ -6,7 +6,7 @@ * The PEAR DB driver for PHP's sqlite extension * for interacting with SQLite databases * - * PHP versions 4 and 5 + * PHP version 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: @@ -21,7 +21,7 @@ * @author Daniel Convissor * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 3.0 - * @version CVS: $Id: sqlite.php,v 1.118 2007/11/26 22:57:18 aharvey Exp $ + * @version CVS: $Id$ * @link http://pear.php.net/package/DB */ @@ -47,7 +47,7 @@ require_once 'DB/common.php'; * @author Daniel Convissor * @copyright 1997-2007 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 3.0 - * @version Release: 1.7.14RC1 + * @version Release: 1.8.2 * @link http://pear.php.net/package/DB */ class DB_sqlite extends DB_common @@ -829,6 +829,9 @@ class DB_sqlite extends DB_common $flags = ''; if ($id[$i]['pk']) { $flags .= 'primary_key '; + if (strtoupper($type) == 'INTEGER') { + $flags .= 'auto_increment '; + } } if ($id[$i]['notnull']) { $flags .= 'not_null ';