Try escaping Oracle single quotes

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2022-01-04 13:36:55 +01:00
parent 46ad6fa3c7
commit ecc92067bf
No known key found for this signature in database
GPG key ID: 7076EA9751AACDDA

View file

@ -81,7 +81,7 @@ class OCIFunctionBuilder extends FunctionBuilder {
}
if ($separator === '\'') {
$separator = '\\\'';
$separator = '\'\'';
}
return new QueryFunction('LISTAGG(' . $this->helper->quoteColumnName($expr) . ", '$separator')$orderByClause");