diff --git a/src/Sql/Operators/MiscOperators/SqlIfNullOperator.php b/src/Sql/Operators/MiscOperators/SqlIfNullOperator.php new file mode 100644 index 00000000..b2fbe9ef --- /dev/null +++ b/src/Sql/Operators/MiscOperators/SqlIfNullOperator.php @@ -0,0 +1,17 @@ +subject = $this->attachExpression($subject); + $this->target = $this->attachExpression($target); + } + + public function getAsString() + { + return 'IFNULL (' . $this->subject->getAsString() . ', ' . $this->target->getAsString() . ')'; + } +} diff --git a/src/Sql/Operators/UnaryOperators/SqlMaxOperator.php b/src/Sql/Operators/UnaryOperators/SqlMaxOperator.php new file mode 100644 index 00000000..0b9a12b3 --- /dev/null +++ b/src/Sql/Operators/UnaryOperators/SqlMaxOperator.php @@ -0,0 +1,8 @@ +subject->getAsString() . ')'; + } +}