Home » Database » MDB2_Schema » Bug #9877
Code bug,mast by repaired
Details
| Submitted | 2007-01-19 14:15 UTC |
|---|---|
| From | alex24041981 at narod dot ru |
| Assigned | ifeghali |
| Status | Bogus |
| Package | MDB2_Schema |
| PHP Version | 5.1.6 |
| OS | WIN 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.