Show
Ignore:
Timestamp:
02/28/2008 09:47:34 PM (11 months ago)
Author:
zombor
Message:

Adding support for configurable database value escaping

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/drivers/Database/Pgsql.php

    r2185 r2193  
    8888        public function escape_table($table) 
    8989        { 
     90                if (!$this->config['escape']) 
     91                        return $table; 
     92 
    9093                return '"'.str_replace('.', '"."', $table).'"'; 
    9194        } 
     
    9396        public function escape_column($column) 
    9497        { 
     98                if (!$this->config['escape']) 
     99                        return $column; 
     100 
    95101                if (strtolower($column) == 'count(*)' OR $column == '*') 
    96102                        return $column; 
     
    214220        public function escape_str($str) 
    215221        { 
     222                if (!$this->config['escape']) 
     223                        return $str; 
     224 
    216225                is_resource($this->link) or $this->connect(); 
    217226