Source for file adodb-sqlitepo.inc.php
Documentation is available at adodb-sqlitepo.inc.php
V4.97 22 Jan 2008 (c) 2000-2008 John Lim (jlim#natsoft.com.my). All rights reserved.
Released under both BSD license and Lesser GPL library license.
Whenever there is any discrepancy between the two licenses,
the BSD license will take precedence.
Portable version of sqlite driver, to make it more similar to other database drivers.
1. When selecting (joining) multiple tables, in assoc mode the table
names are included in the assoc keys in the "sqlite" driver.
In "sqlitepo" driver, the table names are stripped from the returned column names.
When this results in a conflict, the first field get preference.
Contributed by Herman Kuiper herman#ozuzo.net
include_once(ADODB_DIR. '/drivers/adodb-sqlite.inc.php');
/*--------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------*/
// Modified to strip table names from returned fields
function _fetch($ignore_fields= false)
foreach($fields as $n => $v)
if(($p = strpos($n, ".")) !== false)
|