Source for file package_fbsql.php
Documentation is available at package_fbsql.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. However this driver should be considered unmaintained and likely broken.
- increased php dependency to 4.3.0 due to the usage of the streams API since beta5
- ensure that instance is connected before using connection property in tableInfo()
- 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.
- ensure that instance is connected before using connection property in tableInfo()
- moved getInsertID() into core as lastInsertID()
- moved max_text_length property into the fbsql datatype module
- use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
- 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
- return 0 for manipulation queries when disable_query is enabled
- tweaked handling of notnull and default in field reverse engineering
$package = new PEAR_PackageFileManager ();
$result = $package->setOptions (
'packagefile' => 'package_fbsql.xml',
'package' => 'MDB2_Driver_fbsql',
'summary' => 'fbsql MDB2 driver',
'description' => 'This is the Frontbase SQL MDB2 driver.',
'license' => 'BSD License',
'filelistgenerator' => 'cvs',
'include' => array ('*fbsql*'),
'changelogoldtonew' => false ,
'packagedirectory' => './',
'tests/templates' => 'test',
if (PEAR ::isError ($result)) {
echo $result->getMessage ();
$package->addMaintainer ('fmk', 'lead', 'Frank M. Kromann', 'frank@kromann.info');
$package->addMaintainer ('lsmith', 'lead', 'Lukas Kahwe Smith', 'smith@pooteeweet.org');
$package->addDependency ('php', '4.3.0', 'ge', 'php', false );
$package->addDependency ('PEAR', '1.0b1', 'ge', 'pkg', false );
$package->addDependency ('MDB2', '2.0.0beta6', 'ge', 'pkg', false );
$package->addDependency ('fbsql', 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:11 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|