system/database/drivers/mssql/mssql_driver.php 1 location
|
@@ 283-296 (lines=14) @@
|
| 280 |
|
* @param bool $prefix_limit |
| 281 |
|
* @return string |
| 282 |
|
*/ |
| 283 |
|
protected function _list_tables($prefix_limit = FALSE) |
| 284 |
|
{ |
| 285 |
|
$sql = 'SELECT '.$this->escape_identifiers('name') |
| 286 |
|
.' FROM '.$this->escape_identifiers('sysobjects') |
| 287 |
|
.' WHERE '.$this->escape_identifiers('type')." = 'U'"; |
| 288 |
|
|
| 289 |
|
if ($prefix_limit !== FALSE && $this->dbprefix !== '') |
| 290 |
|
{ |
| 291 |
|
$sql .= ' AND '.$this->escape_identifiers('name')." LIKE '".$this->escape_like_str($this->dbprefix)."%' " |
| 292 |
|
.sprintf($this->_like_escape_str, $this->_like_escape_chr); |
| 293 |
|
} |
| 294 |
|
|
| 295 |
|
return $sql.' ORDER BY '.$this->escape_identifiers('name'); |
| 296 |
|
} |
| 297 |
|
|
| 298 |
|
// -------------------------------------------------------------------- |
| 299 |
|
|
system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php 1 location
|
@@ 155-168 (lines=14) @@
|
| 152 |
|
* @param bool $prefix_limit |
| 153 |
|
* @return string |
| 154 |
|
*/ |
| 155 |
|
protected function _list_tables($prefix_limit = FALSE) |
| 156 |
|
{ |
| 157 |
|
$sql = 'SELECT '.$this->escape_identifiers('name') |
| 158 |
|
.' FROM '.$this->escape_identifiers('sysobjects') |
| 159 |
|
.' WHERE '.$this->escape_identifiers('type')." = 'U'"; |
| 160 |
|
|
| 161 |
|
if ($prefix_limit === TRUE && $this->dbprefix !== '') |
| 162 |
|
{ |
| 163 |
|
$sql .= ' AND '.$this->escape_identifiers('name')." LIKE '".$this->escape_like_str($this->dbprefix)."%' " |
| 164 |
|
.sprintf($this->_like_escape_str, $this->_like_escape_chr); |
| 165 |
|
} |
| 166 |
|
|
| 167 |
|
return $sql.' ORDER BY '.$this->escape_identifiers('name'); |
| 168 |
|
} |
| 169 |
|
|
| 170 |
|
// -------------------------------------------------------------------- |
| 171 |
|
|
system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php 1 location
|
@@ 184-197 (lines=14) @@
|
| 181 |
|
* @param bool $prefix_limit |
| 182 |
|
* @return string |
| 183 |
|
*/ |
| 184 |
|
protected function _list_tables($prefix_limit = FALSE) |
| 185 |
|
{ |
| 186 |
|
$sql = 'SELECT '.$this->escape_identifiers('name') |
| 187 |
|
.' FROM '.$this->escape_identifiers('sysobjects') |
| 188 |
|
.' WHERE '.$this->escape_identifiers('type')." = 'U'"; |
| 189 |
|
|
| 190 |
|
if ($prefix_limit === TRUE && $this->dbprefix !== '') |
| 191 |
|
{ |
| 192 |
|
$sql .= ' AND '.$this->escape_identifiers('name')." LIKE '".$this->escape_like_str($this->dbprefix)."%' " |
| 193 |
|
.sprintf($this->_like_escape_str, $this->_like_escape_chr); |
| 194 |
|
} |
| 195 |
|
|
| 196 |
|
return $sql.' ORDER BY '.$this->escape_identifiers('name'); |
| 197 |
|
} |
| 198 |
|
|
| 199 |
|
// -------------------------------------------------------------------- |
| 200 |
|
|
system/database/drivers/sqlsrv/sqlsrv_driver.php 1 location
|
@@ 289-302 (lines=14) @@
|
| 286 |
|
* @param bool |
| 287 |
|
* @return string $prefix_limit |
| 288 |
|
*/ |
| 289 |
|
protected function _list_tables($prefix_limit = FALSE) |
| 290 |
|
{ |
| 291 |
|
$sql = 'SELECT '.$this->escape_identifiers('name') |
| 292 |
|
.' FROM '.$this->escape_identifiers('sysobjects') |
| 293 |
|
.' WHERE '.$this->escape_identifiers('type')." = 'U'"; |
| 294 |
|
|
| 295 |
|
if ($prefix_limit === TRUE && $this->dbprefix !== '') |
| 296 |
|
{ |
| 297 |
|
$sql .= ' AND '.$this->escape_identifiers('name')." LIKE '".$this->escape_like_str($this->dbprefix)."%' " |
| 298 |
|
.sprintf($this->_escape_like_str, $this->_escape_like_chr); |
| 299 |
|
} |
| 300 |
|
|
| 301 |
|
return $sql.' ORDER BY '.$this->escape_identifiers('name'); |
| 302 |
|
} |
| 303 |
|
|
| 304 |
|
// -------------------------------------------------------------------- |
| 305 |
|
|