system/libraries/drivers/Database/Pdosqlite.php 1 location
|
@@ 79-86 (lines=8) @@
|
76 |
|
$this->link->query('PRAGMA encoding = '.$this->escape_str($charset)); |
77 |
|
} |
78 |
|
|
79 |
|
public function escape_table($table) |
80 |
|
{ |
81 |
|
if (! $this->db_config['escape']) { |
82 |
|
return $table; |
83 |
|
} |
84 |
|
|
85 |
|
return '`'.str_replace('.', '`.`', $table).'`'; |
86 |
|
} |
87 |
|
|
88 |
|
public function escape_column($column) |
89 |
|
{ |
system/libraries/drivers/Database/Pgsql.php 1 location
|
@@ 93-100 (lines=8) @@
|
90 |
|
$this->query('SET client_encoding TO '.pg_escape_string($this->link, $charset)); |
91 |
|
} |
92 |
|
|
93 |
|
public function escape_table($table) |
94 |
|
{ |
95 |
|
if (!$this->db_config['escape']) { |
96 |
|
return $table; |
97 |
|
} |
98 |
|
|
99 |
|
return '"'.str_replace('.', '"."', $table).'"'; |
100 |
|
} |
101 |
|
|
102 |
|
public function escape_column($column) |
103 |
|
{ |