svncommit
2008-09-18 d0b973cf6aed4a7cb705f706624d25b31d19ed52
program/lib/MDB2/Driver/Native/sqlite.php
old mode 100755 new mode 100644
@@ -2,7 +2,7 @@
// +----------------------------------------------------------------------+
// | PHP versions 4 and 5                                                 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1998-2004 Manuel Lemos, Tomas V.V.Cox,                 |
// | Copyright (c) 1998-2006 Manuel Lemos, Tomas V.V.Cox,                 |
// | Stig. S. Bakken, Lukas Smith                                         |
// | All rights reserved.                                                 |
// +----------------------------------------------------------------------+
@@ -39,51 +39,22 @@
// | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE          |
// | POSSIBILITY OF SUCH DAMAGE.                                          |
// +----------------------------------------------------------------------+
// | Author: Lukas Smith <smith@backendmedia.com>                         |
// | Author: Lukas Smith <smith@pooteeweet.org>                           |
// +----------------------------------------------------------------------+
//
// $Id$
// $Id: sqlite.php,v 1.9 2006/06/18 21:59:05 lsmith Exp $
//
require_once 'MDB2/Driver/Native/Common.php';
/**
 * MDB2 SQLite driver for the native module
 *
 * @package MDB2
 * @category Database
 * @author  Lukas Smith <smith@backendmedia.com>
 * @author  Lukas Smith <smith@pooteeweet.org>
 */
class MDB2_Driver_Native_sqlite
class MDB2_Driver_Native_sqlite extends MDB2_Driver_Native_Common
{
    var $db_index;
    // {{{ constructor
    /**
     * Constructor
     */
    function __construct($db_index)
    {
        $this->db_index = $db_index;
    }
    function MDB2_Driver_Native_sqlite($db_index)
    {
        $this->__construct($db_index);
    }
    // }}}
    // {{{ getInsertID()
    /**
     * get last insert ID
     *
     * @return mixed MDB2 Error Object or id
     * @access public
     */
    function getInsertID()
    {
        $db =& $GLOBALS['_MDB2_databases'][$this->db_index];
        return @sqlite_last_insert_rowid($db->connection);
    }
}
?>