Set default session value for NLS_NUMERIC_CHARACTERS (Bugfix for DDC-2013) #197

Merged
merged 1 commit into from Sep 17, 2012

4 participants

@naitsirch

Bugfix DDC-2013 - Default Session Value ".," for "NLS_NUMERIC_CHARACTERS". This is needed because Oracle uses other characters for decimal separation depending on the servers locale.

See http://www.doctrine-project.org/jira/browse/DDC-2013

@leonex-cs1 leonex-cs1 Bugfix DDC-2013 - Default Session Value ".," for "NLS_NUMERIC_CHARACT…
…ERS". This is needed because Oracle uses other characters for decimal separation depending on the servers locale
3a8d714
@guilhermeblanco
Doctrine member

I think it should be ",." as most countries utilizes their currency.
Since it's part of OracleSessionInit, you're still able to override the value to use your locale specific currency notation by injecting the parameter to be overwritten.

@naitsirch

Yes, but Doctrine tries to send decimals with dots (e.g. 4.567) to the database and does not look at the systems locale ;-) Another point is that PHP generally handles floats with "."

@beberlei beberlei merged commit 7cb52a3 into doctrine:master Sep 17, 2012

1 check passed

Details default The Travis build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment