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/Pdosqlite.php

    r2164 r2193  
    8282        public function escape_table($table) 
    8383        { 
     84                if (!$this->config['escape']) 
     85                        return $table; 
     86 
    8487                return '`'.str_replace('.', '`.`', $table).'`'; 
    8588        } 
     
    8790        public function escape_column($column) 
    8891        { 
     92                if (!$this->config['escape']) 
     93                        return $column; 
     94 
    8995                if (strtolower($column) == 'count(*)' OR $column == '*') 
    9096                        return $column; 
     
    203209        public function escape_str($str) 
    204210        { 
     211                if (!$this->config['escape']) 
     212                        return $str; 
     213 
    205214                if(function_exists('sqlite_escape_string')) 
    206215                {