Hi Björn!

On 01/16/2008 11:51 AM Björn Dieding wrote:

> I don't have much about a clue yet about the ezc since I havn`t used
> them that much. But by just looking at the list do we have mapping
> for float/double? I think PDO doesn't have this param, but if we
> would have it as a helper. I do remember problems across databases
> when using floats and different locales. E.g. '0.000123' vs
> '0,000123'

Could you elaborate a bit more on this, please? I can follow you, that 
problems exist in general when using locales that use a comma as the 
decimal seperator instead of the point (like the German locale does). 
However, I don't see a problem in respect to database queries here.

Floating point numbers in PHP are always represented in the same way, 
they only get localized on being cast to string. Since we perform value 
binding in PersistentObject, using native PDO functions, this should not 
be an issue. While reading from the database you retrieve back a string, 
  which should also contain a non-localized version of the float (as 
long as you did not configure your database to always return localized 
versions), so the cast to float should work as soon as you use it like this.

Or am I wrong?

Thanks for your feedback anyway! :)

Regards,
Toby
-- 
Mit freundlichen Grüßen / Med vennlig hilsen / With kind regards

Tobias Schlitt (GPG: 0xC462BC14) eZ Components Developer

[EMAIL PROTECTED] | eZ Systems AS | ez.no
-- 
Components mailing list
[email protected]
http://lists.ez.no/mailman/listinfo/components

Reply via email to