Changeset 2193 for trunk/system/libraries/drivers/Database/Pgsql.php
- Timestamp:
- 02/28/2008 09:47:34 PM (11 months ago)
- Files:
-
- 1 modified
-
trunk/system/libraries/drivers/Database/Pgsql.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/drivers/Database/Pgsql.php
r2185 r2193 88 88 public function escape_table($table) 89 89 { 90 if (!$this->config['escape']) 91 return $table; 92 90 93 return '"'.str_replace('.', '"."', $table).'"'; 91 94 } … … 93 96 public function escape_column($column) 94 97 { 98 if (!$this->config['escape']) 99 return $column; 100 95 101 if (strtolower($column) == 'count(*)' OR $column == '*') 96 102 return $column; … … 214 220 public function escape_str($str) 215 221 { 222 if (!$this->config['escape']) 223 return $str; 224 216 225 is_resource($this->link) or $this->connect(); 217 226
