PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » MDB2_Schema » Bug #9877

Code bug,mast by repaired

Details

Submitted2007-01-19 14:15 UTC
Fromalex24041981 at narod dot ru
Assignedifeghali
StatusBogus
PackageMDB2_Schema
PHP Version5.1.6
OSWIN XP
Roadmaps(Not assigned)

Comments

[2007-01-19 14:15 UTC] alex24041981 at narod dot ru

Description:
------------
You try to call self method quoteIdentifier($table, true); in strings 988 and 990, but this is a method of class variable $db.

Test script:
---------------
Your code:
==============
(988)$query = "SELECT MAX($field) FROM".$this->quoteIdentifier($table, true);
(990)$query = "SELECT $field FROM ".$this->quoteIdentifier($table, true)." ORDER BY $field DESC";

Working code
==============
(988)$query = "SELECT MAX($field) FROM".$this->db->quoteIdentifier($table, true);
(990)$query = "SELECT $field FROM ".$this->db->quoteIdentifier($table, true)." ORDER BY $field DESC";

Expected result:
----------------
Call to undefined method

Actual result:
--------------
Will work.