Home » Database » MDB2_Schema » Bug #9889
Udefined function DB_SCHEMA::insertQuote()
Details
| Submitted | 2007-01-20 18:10 UTC |
|---|---|
| From | gaorellana at web dot de |
| Assigned | ifeghali |
| Status | Bogus |
| Package | MDB2_Schema |
| PHP Version | 5.2.0 |
| OS | Windows |
| 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