From 74db760ea8fba6f90f049c45245a831532c74395 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Tue, 19 Apr 2011 10:44:36 +0000 Subject: [PATCH] 2011-04-19 Juan Manuel Ramon * include/db/oracle.php: Changed oracle session parameter for decimal separator. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4248 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/db/oracle.php | 3 +++ 2 files changed, 8 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index f3aef34f82..d8118f8194 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-04-19 Juan Manuel Ramon + + * include/db/oracle.php: Changed oracle session parameter for + decimal separator. + 2011-04-19 Juan Manuel Ramon * install.php: Now it's possible to drop oracle db before installation. diff --git a/pandora_console/include/db/oracle.php b/pandora_console/include/db/oracle.php index 1b389f7dbb..ba43a28e97 100644 --- a/pandora_console/include/db/oracle.php +++ b/pandora_console/include/db/oracle.php @@ -39,14 +39,17 @@ function oracle_connect_db($host = null, $db = null, $user = null, $pass = null) $datetime_tz_format = oci_parse($config['dbconnection'] , 'alter session set NLS_TIMESTAMP_TZ_FORMAT =\'YYYY-MM-DD HH24:MI:SS\''); $datetime_format = oci_parse($config['dbconnection'] , 'alter session set NLS_TIMESTAMP_FORMAT =\'YYYY-MM-DD HH24:MI:SS\''); $date_format = oci_parse($config['dbconnection'] , 'alter session set NLS_DATE_FORMAT =\'YYYY-MM-DD HH24:MI:SS\''); + $decimal_separator = oci_parse($config['dbconnection'] , 'alter session set NLS_NUMERIC_CHARACTERS =\',.\''); oci_execute($datetime_tz_format); oci_execute($datetime_format); oci_execute($date_format); + oci_execute($decimal_separator); oci_free_statement($datetime_tz_format); oci_free_statement($datetime_format); oci_free_statement($date_format); + oci_free_statement($decimal_separator); return $config['dbconnection']; }