cvs: pear /MDB2_Schema/MDB2 Schema.php

From: Date: Thu, 26 Oct 2006 22:52:48 +0000
Subject: cvs: pear /MDB2_Schema/MDB2 Schema.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-42827@lists.php.net to get a copy of this message
ifeghali Thu Oct 26 22:52:48 2006 UTC Modified files: /pear/MDB2_Schema/MDB2 Schema.php Log: - undefined method MDB2_Schema::quoteIdentifier() (Bug #9172) http://cvs.php.net/viewvc.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.103&r2=1.104&diff_format=u Index: pear/MDB2_Schema/MDB2/Schema.php diff -u pear/MDB2_Schema/MDB2/Schema.php:1.103 pear/MDB2_Schema/MDB2/Schema.php:1.104 --- pear/MDB2_Schema/MDB2/Schema.php:1.103 Sat Oct 21 15:00:24 2006 +++ pear/MDB2_Schema/MDB2/Schema.php Thu Oct 26 22:52:48 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.103 2006/10/21 15:00:24 ifeghali Exp $ +// $Id: Schema.php,v 1.104 2006/10/26 22:52:48 ifeghali Exp $ // require_once 'MDB2.php'; @@ -985,9 +985,9 @@ if (!PEAR::isError($tables) && is_array($tables) && in_array($table, $tables)) { if ($this->db->supports('summary_functions')) { - $query = "SELECT MAX($field) FROM ".$this->quoteIdentifier($table, true); + $query = "SELECT MAX($field) FROM ".$this->db->quoteIdentifier($table, true); } else { - $query = "SELECT $field FROM ".$this->quoteIdentifier($table, true)." ORDER BY $field DESC"; + $query = "SELECT $field FROM ".$this->db->quoteIdentifier($table, true)." ORDER BY $field DESC"; } $start = $this->db->queryOne($query, 'integer'); if (PEAR::isError($start)) {

« previous php.pear.cvs (#42827) next »