MDB2_Driver_ibase
[ class tree: MDB2_Driver_ibase ] [ index: MDB2_Driver_ibase ] [ all elements ]

Source for file package_ibase.php

Documentation is available at package_ibase.php

  1. <?php
  2.  
  3. require_once 'PEAR/PackageFileManager.php';
  4.  
  5. $version '0.1.2';
  6. $notes = <<<EOT
  7. Warning: this release features numerous BC breaks!
  8.  
  9. There have been considerable improvements to the datatype, manager and reverse
  10. modules. Furthermore preliminary support for auto increment and primary keys
  11. has been added. Please note that making a field auto increment implies a single
  12. column primary key on this field.
  13.  
  14. - added support for auto increment and primary key in schema.
  15. - alterTable now needs the full definition to work (use getTableFieldDefinition
  16.  from Reverse module if you do not have a definition at hand) this eliminates the need
  17.  of the declaration part in the alterTable array.
  18. - fix PHP4.4 breakage
  19. - fixed several incorrect raiseError() calls in manager module
  20. - use !empty() instead of isset() in fetchRow to determine if result cols were bound or result types were set
  21. - expect keys in type arrays the same way as they are passed for the values in execute() and bindParamArray()
  22. - add s pattern modifier to preg_replace() call for parameter searches in prepare() (bug #5362)
  23. - moved all private fetch mode fix methods into _fixResultArrayValues() for performance reasons
  24. - 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)
  25. - use array_key_exists() instead of isset() where possible
  26. - changed structure of field add/remove/change in alterTable() to match MDB2_Schema
  27. - createIndex(): index_sorting is not a feature in the supported array, but is supported by interbase
  28. - return 0 for manipulation queries when disable_query is enabled
  29. - tweaked field changing in alterTable()
  30. - getTypeDeclaration() in the datatype module is now a public method
  31. - fixed alterTable() signature
  32. - fixed listTableFields()
  33. - added listTableIndexes()
  34. - added listTables()
  35.  
  36. open todo items:
  37. - code to be able to list primary contraints inside listTableIndexes()/dropIndex()
  38. - handle autoincremement fields in alterTable() and dropTable()
  39. EOT;
  40.  
  41. $package = new PEAR_PackageFileManager();
  42.  
  43. $result $package->setOptions(
  44.     array(
  45.         'packagefile'       => 'package_ibase.xml',
  46.         'package'           => 'MDB2_Driver_ibase',
  47.         'summary'           => 'ibase MDB2 driver',
  48.         'description'       => 'This is the Firebird/Interbase MDB2 driver.',
  49.         'version'           => $version,
  50.         'state'             => 'beta',
  51.         'license'           => 'BSD License',
  52.         'filelistgenerator' => 'cvs',
  53.         'include'           => array('*ibase*'),
  54.         'notes'             => $notes,
  55.         'changelogoldtonew' => false,
  56.         'simpleoutput'      => true,
  57.         'baseinstalldir'    => '/',
  58.         'packagedirectory'  => './',
  59.         'dir_roles'         => array(
  60.             'docs' => 'doc',
  61.              'examples' => 'doc',
  62.              'tests' => 'test',
  63.              'tests/templates' => 'test',
  64.         ),
  65.     )
  66. );
  67.  
  68. if (PEAR::isError($result)) {
  69.     echo $result->getMessage();
  70.     die();
  71. }
  72.  
  73. $package->addMaintainer('quipo''lead''Lorenzo Alberton''l.alberton@quipo.it');
  74. $package->addMaintainer('lsmith''lead''Lukas Kahwe Smith''smith@pooteeweet.org');
  75.  
  76. $package->addDependency('php''5.0.4''ge''php'false);
  77. $package->addDependency('PEAR''1.0b1''ge''pkg'false);
  78. $package->addDependency('MDB2''2.0.0beta6''ge''pkg'false);
  79. $package->addDependency('interbase'null'has''ext'false);
  80.  
  81. $package->addglobalreplacement('package-info''@package_version@''version');
  82.  
  83. if (array_key_exists('make'$_GET|| (isset($_SERVER['argv'][1]&& $_SERVER['argv'][1== 'make')) {
  84.     $result $package->writePackageFile();
  85. else {
  86.     $result $package->debugPackageFile();
  87. }
  88.  
  89. if (PEAR::isError($result)) {
  90.     echo $result->getMessage();
  91.     die();
  92. }

Documentation generated on Mon, 11 Mar 2019 14:12:51 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.