Fixed condition group bug.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8394 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
mosmartin 2011-05-23 14:45:00 +00:00
parent c40ccf777f
commit 4d2d18b53b
9 changed files with 178 additions and 19 deletions

View file

@ -14,7 +14,11 @@
}
function toString(){
return $this->pipe . ' ' . $this->getConditionPart($this->column_name, $this->value, $this->operation);
return $this->pipe . ' ' . $this->getConditionPart();
}
function setPipe($pipe){
$this->pipe = $pipe;
}
function show(){
@ -42,8 +46,13 @@
}
return true;
}
function getConditionPart($name, $value, $operation) {
function getConditionPart() {
$name = $this->column_name;
$value = $this->value;
$operation = $this->operation;
switch($operation) {
case 'equal' :
return $name.' = '.$value;