aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_database.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2009-06-16 14:14:07 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2009-06-16 14:14:07 +0000
commitce144ab0baaafa10bf3e37812e2f5875680de499 (patch)
tree0881d1514719810cfb539c4841d9c6747e48b4c7 /phpBB/includes/acp/acp_database.php
parentd8b0f2f31074b83fffa613e93cf156fd913f74be (diff)
downloadforums-ce144ab0baaafa10bf3e37812e2f5875680de499.tar
forums-ce144ab0baaafa10bf3e37812e2f5875680de499.tar.gz
forums-ce144ab0baaafa10bf3e37812e2f5875680de499.tar.bz2
forums-ce144ab0baaafa10bf3e37812e2f5875680de499.tar.xz
forums-ce144ab0baaafa10bf3e37812e2f5875680de499.zip
Fix Oracle database backup (Bug #46715)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9598 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_database.php')
-rw-r--r--phpBB/includes/acp/acp_database.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_database.php b/phpBB/includes/acp/acp_database.php
index 856b867c9a..1182e224cf 100644
--- a/phpBB/includes/acp/acp_database.php
+++ b/phpBB/includes/acp/acp_database.php
@@ -1854,7 +1854,8 @@ class oracle_extractor extends base_extractor
// Build the SQL statement to recreate the data.
for ($i = 0; $i < $i_num_fields; $i++)
{
- $str_val = $row[$ary_name[$i]];
+ // Oracle uses uppercase - we use lowercase
+ $str_val = $row[strtolower($ary_name[$i])];
if (preg_match('#char|text|bool|raw#i', $ary_type[$i]))
{
@@ -1885,7 +1886,7 @@ class oracle_extractor extends base_extractor
}
$schema_vals[$i] = $str_quote . $str_val . $str_quote;
- $schema_fields[$i] = '"' . $ary_name[$i] . "'";
+ $schema_fields[$i] = '"' . $ary_name[$i] . '"';
}
// Take the ordered fields and their associated data and build it