Skip to content

Commit

Permalink
CDbCriteria: addBetweenCondition function now internal use `addCond…
Browse files Browse the repository at this point in the history
…ition`
  • Loading branch information
Ryadnov committed Oct 25, 2012
1 parent a66a569 commit c79d247
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions framework/db/schema/CDbCriteria.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit c79d247

Please sign in to comment.