summaryrefslogtreecommitdiffstats
path: root/lib/app.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-06-10 10:33:02 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-06-10 10:33:02 +0200
commit5ec13742b312959f5e391e792c53433fb107975c (patch)
tree020ccfe6649d2a6960109fd6914062ce7a3452da /lib/app.php
parentb237d0379162b52269a6ea8292165d448d075f46 (diff)
downloadnextcloud-server-5ec13742b312959f5e391e792c53433fb107975c.tar.gz
nextcloud-server-5ec13742b312959f5e391e792c53433fb107975c.zip
use to_char to allow comparing string to CLOB cloumns in oracle
Diffstat (limited to 'lib/app.php')
-rw-r--r--lib/app.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/app.php b/lib/app.php
index c6f6e92e60e..3e6cadfe2c9 100644
--- a/lib/app.php
+++ b/lib/app.php
@@ -174,7 +174,8 @@ class OC_App{
$apps=array('files');
$sql = 'SELECT `appid` FROM `*PREFIX*appconfig`'
.' WHERE `configkey` = \'enabled\' AND `configvalue`=\'yes\'';
- if (OC_Config::getValue( 'dbtype', 'sqlite' ) === 'oci') { //FIXME oracle hack
+ if (OC_Config::getValue( 'dbtype', 'sqlite' ) === 'oci') {
+ //FIXME oracle hack: need to explicitly cast CLOB to CHAR for comparison
$sql = 'SELECT `appid` FROM `*PREFIX*appconfig`'
.' WHERE `configkey` = \'enabled\' AND to_char(`configvalue`)=\'yes\'';
}