Source for file package_pgsql.php
Documentation is available at package_pgsql.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.
- increased php dependency to 4.3.0 due to the usage of the streams API since beta5
- fixed typo in _getTextDeclaration()
- 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.
- improved error mapping (ported from DB)
- better detect if the query returned a result set or not in _doQuery()
- minor tweaks to LOB handling
- 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)
- 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 getTableFieldDefinition() in reverse module
- added getTypeDeclaration() in the datatype module
- tweaked field changing in alterTable()
- fixed alterTable() signature
- implement native prepared queries
$package = new PEAR_PackageFileManager ();
$result = $package->setOptions (
'packagefile' => 'package_pgsql.xml',
'package' => 'MDB2_Driver_pgsql',
'summary' => 'pgsql MDB2 driver',
'description' => 'This is the PostGreSQL MDB2 driver.',
'license' => 'BSD License',
'filelistgenerator' => 'cvs',
'include' => array ('*pgsql*'),
'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', '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 ('pgsql', 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:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|