GetConditionExpression() public method

Ejemplo n.º 1
0
 protected function AppendIf(QueryBuilder $QueryBuilder, E\IfExpression $Expression)
 {
     $QueryBuilder->Append('CASE WHEN ');
     $this->Append($QueryBuilder, $Expression->GetConditionExpression());
     $QueryBuilder->Append(' THEN ');
     $this->Append($QueryBuilder, $Expression->GetIfTrueExpression());
     $QueryBuilder->Append(' ELSE ');
     $this->Append($QueryBuilder, $Expression->GetIfFalseExpression());
     $QueryBuilder->Append(' END ');
 }
Ejemplo n.º 2
0
 protected function AppendIf(QueryBuilder $QueryBuilder, E\IfExpression $Expression)
 {
     $QueryBuilder->Append('IF');
     $QueryBuilder->Append('(');
     $this->Append($QueryBuilder, $Expression->GetConditionExpression());
     $QueryBuilder->Append(',');
     $this->Append($QueryBuilder, $Expression->GetIfTrueExpression());
     $QueryBuilder->Append(',');
     $this->Append($QueryBuilder, $Expression->GetIfFalseExpression());
     $QueryBuilder->Append(')');
 }