Allow `set('column', 'null')` to work like in Doctrine
This commit is contained in:
parent
158c962fcc
commit
70572c1e3c
|
@ -52,7 +52,7 @@ class QuoteHelper {
|
||||||
return (string) $string;
|
return (string) $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($string === null || $string === '*') {
|
if ($string === null || $string === 'null' || $string === '*') {
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -43,6 +43,10 @@ class QuoteHelperTest extends \Test\TestCase {
|
||||||
[new Literal('literal'), 'literal'],
|
[new Literal('literal'), 'literal'],
|
||||||
[new Literal(1), '1'],
|
[new Literal(1), '1'],
|
||||||
[new Parameter(':param'), ':param'],
|
[new Parameter(':param'), ':param'],
|
||||||
|
|
||||||
|
// (string) 'null' is Doctrines way to set columns to null
|
||||||
|
// See https://github.com/owncloud/core/issues/19314
|
||||||
|
['null', 'null'],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue