summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-07-25 15:34:59 +0200
committerJoas Schilling <coding@schilljs.com>2017-08-02 09:50:41 +0200
commit78412fda9c0af263ecd6454fd52d72a040debe2f (patch)
tree11dd18fef33868ef0b43ca4a35833979c481e24c /lib/public
parent100fe07f5d54e5dfe8bcb369f1ee35dc1736f348 (diff)
downloadnextcloud-server-78412fda9c0af263ecd6454fd52d72a040debe2f.tar.gz
nextcloud-server-78412fda9c0af263ecd6454fd52d72a040debe2f.zip
Add a method to compare empty strings with an expression
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/DB/QueryBuilder/IExpressionBuilder.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/public/DB/QueryBuilder/IExpressionBuilder.php b/lib/public/DB/QueryBuilder/IExpressionBuilder.php
index c123875b803..eab93b52f8a 100644
--- a/lib/public/DB/QueryBuilder/IExpressionBuilder.php
+++ b/lib/public/DB/QueryBuilder/IExpressionBuilder.php
@@ -305,6 +305,24 @@ interface IExpressionBuilder {
*/
public function notIn($x, $y, $type = null);
+ /**
+ * Creates a $x = '' statement, because Oracle needs a different check
+ *
+ * @param string $x The field in string format to be inspected by the comparison.
+ * @return string
+ * @since 13.0.0
+ */
+ public function emptyString($x);
+
+ /**
+ * Creates a `$x <> ''` statement, because Oracle needs a different check
+ *
+ * @param string $x The field in string format to be inspected by the comparison.
+ * @return string
+ * @since 13.0.0
+ */
+ public function nonEmptyString($x);
+
/**
* Creates a bitwise AND comparison