summaryrefslogtreecommitdiff
path: root/framework/Data/ActiveRecord
diff options
context:
space:
mode:
authorwei <>2007-01-24 00:01:34 +0000
committerwei <>2007-01-24 00:01:34 +0000
commitdec4042d10caa5a54b753fab950f16218fa62d8d (patch)
treed3b89386e78a3b059baa13e738ea6004d02eb6aa /framework/Data/ActiveRecord
parent1c92c3a9fb320ec35949634e53b28ee4ab79f138 (diff)
add active record count test
Diffstat (limited to 'framework/Data/ActiveRecord')
-rw-r--r--framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php b/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php
index 6e157785..826654dc 100644
--- a/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php
+++ b/framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php
@@ -195,7 +195,7 @@ abstract class TDbMetaDataCommon extends TDbMetaData
*/
public function getDeleteByCriteriaCommand($conn, $criteria)
{
- $conditions = $criteria!==null?$this->getSqlFromCriteria($conn,$criteria) : '';
+ $conditions = $this->getSqlFromCriteria($conn,$criteria);
$table = $this->getTableName();
$sql = "DELETE FROM {$table} {$conditions}";
return $this->createCriteriaBindedCommand($conn,$sql, $criteria);