mirror of
https://github.com/nextcloud/server.git
synced 2026-07-15 04:51:46 -04:00
Hack around oracle for CLOB fields
This commit is contained in:
parent
879237f32a
commit
4b18967129
1 changed files with 9 additions and 1 deletions
|
|
@ -254,7 +254,15 @@ class Preferences {
|
|||
|
||||
$query = 'SELECT `userid` '
|
||||
. ' FROM `*PREFIX*preferences` '
|
||||
. ' WHERE `appid` = ? AND `configkey` = ? AND `configvalue` = ?';
|
||||
. ' WHERE `appid` = ? AND `configkey` = ? AND ';
|
||||
|
||||
if (\OC_Config::getValue( 'dbtype', 'sqlite' ) === 'oci') {
|
||||
//FIXME oracle hack: need to explicitly cast CLOB to CHAR for comparison
|
||||
$query .= ' to_char(`configvalue`)= ?';
|
||||
} else {
|
||||
$query .= ' `configvalue` = ?';
|
||||
}
|
||||
|
||||
$result = $this->conn->executeQuery($query, array($app, $key, $value));
|
||||
|
||||
while ($row = $result->fetch()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue