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

Adding support for configurable database value escaping

Files:
1 modified

Legend:

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

    r2190 r2193  
    124124        public function escape_column($column) 
    125125        { 
     126                if (!$this->config['escape']) 
     127                        return $column; 
     128 
    126129                if (strtolower($column) == 'count(*)' OR $column == '*') 
    127130                        return $column; 
     
    260263        public function escape_str($str) 
    261264        { 
     265                if (!$this->config['escape']) 
     266                        return $str; 
     267 
    262268                is_resource($this->link) or $this->connect(); 
    263269                //mssql_real_escape_string($str, $this->link); <-- this function doesn't exist