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_Schema » Bug #9889

Udefined function DB_SCHEMA::insertQuote()

Details

Submitted2007-01-20 18:10 UTC
Fromgaorellana at web dot de
Assignedifeghali
StatusBogus
PackageMDB2_Schema
PHP Version5.2.0
OSWindows
Roadmaps(Not assigned)

Comments

[2007-01-20 18:10 UTC] gaorellana at web dot de

Description:
------------
Typing error in Schema.php in lines 988 and line 990 <see test scripts for code excerpt>

to reproduce:
-------------
Install the example4 proveded in pear examples for LiveUser
example: C:\php\pear\LiveUser\docs\examples\example4

by doing->

http://localhost/pear/LiveUser/docs/examples/demodata.php?dsn=mysql://root:@localhost/liveuser_test_example4&file=example4/demodata.xml&create=1

throw following message:
...Udefined function DB_SCHEMA::insertQuote()

Test script:
---------------
Excerpts of Schema.php

inside function MDB2_Schema::createSequence
....
986 if (!PEAR::isError($tables) && is_array($tables) && in_array($table, $tables)) {
987 if ($this->db->supports('summary_functions')) {
988 $query = "SELECT MAX($field) FROM ".$this->quoteIdentifier($table, true);//should be $this->db->quoteIdentifier
989 } else {
990 $query = "SELECT $field FROM ".$this->quoteIdentifier($table, true)." ORDER BY $field DESC";//should be $this->db->quoteIdentifier
991 }
...

[2007-01-25 14:12 UTC] gaorellana at web dot de

OK, I had downloaded originally from pear.php.net, In there the package had the bug.
Regards