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']; }