Permalink
Browse files

CDbCriteria: `addBetweenCondition` function now internal use `addCond…

…ition`
  • Loading branch information...
1 parent a66a569 commit c79d24743200658e972b20f1864ae929fdd03981 @Ryadnov Ryadnov committed Oct 25, 2012
Showing with 1 addition and 5 deletions.
  1. +1 −5 framework/db/schema/CDbCriteria.php
View
6 framework/db/schema/CDbCriteria.php
@@ -464,11 +464,7 @@ public function addBetweenCondition($column,$valueStart,$valueEnd,$operator='AND
$this->params[$paramEnd]=$valueEnd;
$condition="$column BETWEEN $paramStart AND $paramEnd";
- if($this->condition==='')
- $this->condition=$condition;
- else
- $this->condition='('.$this->condition.') '.$operator.' ('.$condition.')';
- return $this;
+ return $this->addCondition($condition,$operator);
}
/**

0 comments on commit c79d247

Please sign in to comment.