2011-04-19 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* 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
This commit is contained in:
parent
3014512979
commit
74db760ea8
|
@ -1,3 +1,8 @@
|
|||
2011-04-19 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/db/oracle.php: Changed oracle session parameter for
|
||||
decimal separator.
|
||||
|
||||
2011-04-19 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* install.php: Now it's possible to drop oracle db before installation.
|
||||
|
|
|
@ -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'];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue