aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-09-24 10:57:49 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2015-09-24 10:57:49 +0200
commit11974477bdeb699ae924fcc6e990dd899e63cf8a (patch)
treedcbdb9c700ac2eab65251e66c4415a0f309ee6f9 /tests
parentdf75c17e52001f2d59e72df132743e289c10809e (diff)
parent70572c1e3cf9e297a49091d31461d50f7611300c (diff)
downloadnextcloud-server-11974477bdeb699ae924fcc6e990dd899e63cf8a.tar.gz
nextcloud-server-11974477bdeb699ae924fcc6e990dd899e63cf8a.zip
Merge pull request #19326 from owncloud/issue-19314-querybuilder-set-null
Allow `set('column', 'null')` to work like in Doctrine's QueryBuilder
Diffstat (limited to 'tests')
-rw-r--r--tests/lib/db/querybuilder/quotehelpertest.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/lib/db/querybuilder/quotehelpertest.php b/tests/lib/db/querybuilder/quotehelpertest.php
index 904b4c500db..b83d9eed2df 100644
--- a/tests/lib/db/querybuilder/quotehelpertest.php
+++ b/tests/lib/db/querybuilder/quotehelpertest.php
@@ -43,6 +43,10 @@ class QuoteHelperTest extends \Test\TestCase {
[new Literal('literal'), 'literal'],
[new Literal(1), '1'],
[new Parameter(':param'), ':param'],
+
+ // (string) 'null' is Doctrines way to set columns to null
+ // See https://github.com/owncloud/core/issues/19314
+ ['null', 'null'],
];
}