diff options
Diffstat (limited to 'lib/private/db/mdb2schemawriter.php')
-rw-r--r-- | lib/private/db/mdb2schemawriter.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/private/db/mdb2schemawriter.php b/lib/private/db/mdb2schemawriter.php index a42cd86ba54..1fb71ab398b 100644 --- a/lib/private/db/mdb2schemawriter.php +++ b/lib/private/db/mdb2schemawriter.php @@ -22,8 +22,13 @@ class OC_DB_MDB2SchemaWriter { $xml->addChild('overwrite', 'false'); $xml->addChild('charset', 'utf8'); - $conn->getConfiguration()-> - setFilterSchemaAssetsExpression('/^' . $config->getSystemValue('dbtableprefix', 'oc_') . '/'); + // FIX ME: bloody work around + if ($config->getSystemValue('dbtype', 'sqlite') === 'oci') { + $filterExpression = '/^"' . preg_quote($conn->getPrefix()) . '/'; + } else { + $filterExpression = '/^' . preg_quote($conn->getPrefix()) . '/'; + } + $conn->getConfiguration()->setFilterSchemaAssetsExpression($filterExpression); foreach ($conn->getSchemaManager()->listTables() as $table) { self::saveTable($table, $xml->addChild('table')); |