diff options
author | Andrey Andreev <narf@bofh.bg> | 2012-07-18 15:46:39 +0200 |
---|---|---|
committer | Andrey Andreev <narf@bofh.bg> | 2012-07-18 15:46:39 +0200 |
commit | d40459d94f91219f080caabebd627fdc319b0f42 (patch) | |
tree | 2dea922f7df7144e89df1810603ce371ebbe6caa /system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php | |
parent | b04786599e1b032078f1d3bdd8941405d47447a0 (diff) |
Merge where() and having() logic - it's structurally identical and only the keyword differs
Diffstat (limited to 'system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php')
-rw-r--r-- | system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php b/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php index 1896225f0..39cb5f9ef 100644 --- a/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php +++ b/system/database/drivers/pdo/subdrivers/pdo_sqlsrv_driver.php @@ -227,7 +227,7 @@ class CI_DB_pdo_sqlsrv_driver extends CI_DB_pdo_driver { { if ($this->qb_limit) { - return 'WITH ci_delete AS (SELECT TOP '.(int) $this->qb_limit.' * FROM '.$table.$this->_compile_where().') DELETE FROM ci_delete'; + return 'WITH ci_delete AS (SELECT TOP '.(int) $this->qb_limit.' * FROM '.$table.$this->_compile_wh('qb_where').') DELETE FROM ci_delete'; } return parent::_delete($table); |