Source for file package_mysqli.php
Documentation is available at package_mysqli.php
require_once 'PEAR/PackageFileManager.php';
Warning: this release features numerous BC breaks!
There have been considerable improvements to the datatype, manager and reverse
modules. Furthermore preliminary support for auto increment and primary keys
has been added. Please note that making a field auto increment implies a single
column primary key on this field.
- added support for auto increment and primary key in schema.
- alterTable now needs the full definition to work (use getTableFieldDefinition
from Reverse module if you do not have a definition at hand) this eliminates the need
of the declaration part in the alterTable array.
- removed support for dummy_primary_key
- moved getInsertID() into core as lastInsertID()
- all non LOB values were quoted twice in execute()
- clobs only need to be mapped to binary when using mysqli_stmt_send_long_data()
which is handled independently
- use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
- expect keys in type arrays the same way as they are passed for the values in execute() and bindParamArray()
- add s pattern modifier to preg_replace() call for parameter searches in prepare() (bug #5362)
- moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
- renamed MDB2_PORTABILITY_LOWERCASE to MDB2_PORTABILITY_FIX_CASE and use 'field_case' option to determine if to upper- or lowercase (CASE_LOWER/CASE_UPPER)
- count() -> !empty() where possible
- use array_map() instead of array_flip(array_change_key_case(array_flip())) to fix case of array values
- use array_key_exists() instead of isset() where possible
- changed structure of field add/remove/change in alterTable() to match MDB2_Schema
- removed subSelect() implementation (now in already included in common)
- return 0 for manipulation queries when disable_query is enabled
- tweaked getTableFieldDefinition() in reverse module
$package = new PEAR_PackageFileManager ();
$result = $package->setOptions (
'packagefile' => 'package_mysqli.xml',
'package' => 'MDB2_Driver_mysqli',
'summary' => 'mysqli MDB2 driver',
'description' => 'This is the MySQLi MDB2 driver.',
'license' => 'BSD License',
'filelistgenerator' => 'cvs',
'include' => array ('*mysqli*'),
'changelogoldtonew' => false ,
'packagedirectory' => './',
'tests/templates' => 'test',
if (PEAR ::isError ($result)) {
echo $result->getMessage ();
$package->addMaintainer ('lsmith', 'lead', 'Lukas Kahwe Smith', 'smith@pooteeweet.org');
$package->addDependency ('php', '5.0.0', 'ge', 'php', false );
$package->addDependency ('PEAR', '1.0b1', 'ge', 'pkg', false );
$package->addDependency ('MDB2', '2.0.0beta6', 'ge', 'pkg', false );
$package->addDependency ('mysqli', null , 'has', 'ext', false );
$package->addglobalreplacement ('package-info', '@package_version@', 'version');
if (array_key_exists('make', $_GET) || (isset ($_SERVER['argv'][1 ]) && $_SERVER['argv'][1 ] == 'make')) {
$result = $package->writePackageFile ();
$result = $package->debugPackageFile ();
if (PEAR ::isError ($result)) {
echo $result->getMessage ();
Documentation generated on Mon, 11 Mar 2019 14:13:14 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|