GetIfTrueExpression() public method

public GetIfTrueExpression ( )
Exemplo 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 ');
 }
Exemplo 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(')');
 }