diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Data/ActiveRecord/Vendor/TDbMetaDataCommon.php | 2 |
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);
|