system/database/drivers/mssql/mssql_driver.php 1 location
|
@@ 421-429 (lines=9) @@
|
| 418 |
|
* @param string $table |
| 419 |
|
* @return string |
| 420 |
|
*/ |
| 421 |
|
protected function _delete($table) |
| 422 |
|
{ |
| 423 |
|
if ($this->qb_limit) |
| 424 |
|
{ |
| 425 |
|
return 'WITH ci_delete AS (SELECT TOP '.$this->qb_limit.' * FROM '.$table.$this->_compile_wh('qb_where').') DELETE FROM ci_delete'; |
| 426 |
|
} |
| 427 |
|
|
| 428 |
|
return parent::_delete($table); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
// -------------------------------------------------------------------- |
| 432 |
|
|
system/database/drivers/pdo/subdrivers/pdo_dblib_driver.php 1 location
|
@@ 248-256 (lines=9) @@
|
| 245 |
|
* @param string $table |
| 246 |
|
* @return string |
| 247 |
|
*/ |
| 248 |
|
protected function _delete($table) |
| 249 |
|
{ |
| 250 |
|
if ($this->qb_limit) |
| 251 |
|
{ |
| 252 |
|
return 'WITH ci_delete AS (SELECT TOP '.$this->qb_limit.' * FROM '.$table.$this->_compile_wh('qb_where').') DELETE FROM ci_delete'; |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
return parent::_delete($table); |
| 256 |
|
} |
| 257 |
|
|
| 258 |
|
// -------------------------------------------------------------------- |
| 259 |
|
|
system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php 1 location
|
@@ 277-285 (lines=9) @@
|
| 274 |
|
* @param string $table |
| 275 |
|
* @return string |
| 276 |
|
*/ |
| 277 |
|
protected function _delete($table) |
| 278 |
|
{ |
| 279 |
|
if ($this->qb_limit) |
| 280 |
|
{ |
| 281 |
|
return 'WITH ci_delete AS (SELECT TOP '.$this->qb_limit.' * FROM '.$table.$this->_compile_wh('qb_where').') DELETE FROM ci_delete'; |
| 282 |
|
} |
| 283 |
|
|
| 284 |
|
return parent::_delete($table); |
| 285 |
|
} |
| 286 |
|
|
| 287 |
|
// -------------------------------------------------------------------- |
| 288 |
|
|
system/database/drivers/sqlsrv/sqlsrv_driver.php 1 location
|
@@ 438-446 (lines=9) @@
|
| 435 |
|
* @param string $table |
| 436 |
|
* @return string |
| 437 |
|
*/ |
| 438 |
|
protected function _delete($table) |
| 439 |
|
{ |
| 440 |
|
if ($this->qb_limit) |
| 441 |
|
{ |
| 442 |
|
return 'WITH ci_delete AS (SELECT TOP '.$this->qb_limit.' * FROM '.$table.$this->_compile_wh('qb_where').') DELETE FROM ci_delete'; |
| 443 |
|
} |
| 444 |
|
|
| 445 |
|
return parent::_delete($table); |
| 446 |
|
} |
| 447 |
|
|
| 448 |
|
// -------------------------------------------------------------------- |
| 449 |
|
|