Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for Metafox/lib/DB/common.php between version 1.3 and 1.4

version 1.3, 2011/06/17 13:56:38 version 1.4, 2017/06/09 15:05:06
Line 5 
Line 5 
 /**  /**
  * Contains the DB_common base class   * Contains the DB_common base class
  *   *
  * PHP versions 4 and 5   * PHP version 5
  *   *
  * LICENSE: This source file is subject to version 3.0 of the PHP license   * LICENSE: This source file is subject to version 3.0 of the PHP license
  * that is available through the world-wide-web at the following URI:   * that is available through the world-wide-web at the following URI:
Line 42  require_once 'PEAR.php';
Line 42  require_once 'PEAR.php';
  * @author     Daniel Convissor <danielc@php.net>   * @author     Daniel Convissor <danielc@php.net>
  * @copyright  1997-2007 The PHP Group   * @copyright  1997-2007 The PHP Group
  * @license    http://www.php.net/license/3_0.txt  PHP License 3.0   * @license    http://www.php.net/license/3_0.txt  PHP License 3.0
  * @version    Release: 1.7.14RC2   * @version    Release: 1.9.2
  * @link       http://pear.php.net/package/DB   * @link       http://pear.php.net/package/DB
  */   */
 class DB_common extends PEAR  class DB_common extends PEAR
Line 145  class DB_common extends PEAR
Line 145  class DB_common extends PEAR
      *       *
      * @return void       * @return void
      */       */
     function DB_common()      function __construct()
     {      {
         $this->PEAR('DB_Error');          $this->PEAR('DB_Error');
     }      }
Line 261  class DB_common extends PEAR
Line 261  class DB_common extends PEAR
      */       */
     function quoteString($string)      function quoteString($string)
     {      {
         $string = $this->quote($string);          $string = $this->quoteSmart($string);
         if ($string{0} == "'") {          if ($string{0} == "'") {
             return substr($string, 1, -1);              return substr($string, 1, -1);
         }          }
Line 284  class DB_common extends PEAR
Line 284  class DB_common extends PEAR
      */       */
     function quote($string = null)      function quote($string = null)
     {      {
         return ($string === null) ? 'NULL'          return $this->quoteSmart($string);
                                   : "'" . str_replace("'", "''", $string) . "'";  
     }      }
   
     // }}}      // }}}
Line 1249  class DB_common extends PEAR
Line 1248  class DB_common extends PEAR
             return $query;              return $query;
         }          }
         $result = $this->query($query, $params);          $result = $this->query($query, $params);
         if (is_a($result, 'DB_result')) {          if (is_object($result) && is_a($result, 'DB_result')) {
             $result->setOption('limit_from', $from);              $result->setOption('limit_from', $from);
             $result->setOption('limit_count', $count);              $result->setOption('limit_count', $count);
         }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top