PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » MDB2_Driver_sqlite » Bug #9693

database schema change

Details

Submitted2006-12-25 19:28 UTC
Fromafz at php dot net
Assignedquipo
StatusClosed
PackageMDB2_Driver_sqlite
PHP VersionIrrelevant
Roadmaps(Not assigned)

Comments

[2006-12-25 19:28 UTC] afz at php dot net

Description:
------------
some time when execute query this errors occurred.
for more information see: http://www.sqlite.org/faq.html#q17
and solution for this bug is:

replace line 518 of sqlite.php on MDB2/Driver with:
do {
$result = @$function($query.';', $connection);
} while (sqlite_last_error($connection) == SQLITE_SCHEMA);

and replace line 521 of sqlite.php on MDB2/Driver with:
do {
$result = @$function($query.';', $connection, SQLITE_BOTH, $php_errormsg);
} while (sqlite_last_error($connection) == SQLITE_SCHEMA);