Permalink
Browse files

oci8 no longer needs special fetch mode with ADOdb 5.19

Fixes #15426
  • Loading branch information...
1 parent b7ebffd commit 84d21a61f61335d9d66a8ecdac88bcf5e6b16590 @dregad dregad committed May 13, 2014
Showing with 1 addition and 10 deletions.
  1. +1 −10 core/database_api.php
View
11 core/database_api.php
@@ -53,18 +53,9 @@
# @global bool $g_db_log_queries
$g_db_log_queries = ( 0 != ( config_get_global( 'log_level' ) & LOG_DATABASE ) );
-
# set adodb fetch mode
# @global bool $ADODB_FETCH_MODE
-if( db_is_oracle() ) {
- # Due to oci8 returning column names in uppercase, the MantisBT
- # default fetch mode (ADODB_FETCH_ASSOC) does not work properly
- # in the current version of ADOdb (5.18) so we override it.
- # See #15426
- $ADODB_FETCH_MODE = ADODB_FETCH_NUM;
-} else {
- $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
-}
+$ADODB_FETCH_MODE = ADODB_FETCH_ASSOC;
/**
* Mantis Database Parameters Count class

0 comments on commit 84d21a6

Please sign in to comment.