Home » U++ Library support » U++ SQL » truncated double values from mysql
truncated double values from mysql [message #25047] |
Tue, 09 February 2010 10:21  |
MatthiasG
Messages: 27 Registered: January 2008 Location: Germany
|
Promising Member |
|
|
Hello,
if i set up my system to LC_NUMERIC=de_DE upp uses ',' as decimal point in double values.
the problem is, that the atof() function now also only accepts double values with a ',' as decimal points.
the mysql plugin however also uses atof() to read doubles from the database. but it seems to me, that mysql always returns doubles with '.', not matter what LC_NUMERIC i set.
is it possible, to change the call to atof() in mysql package to ScanDouble(), so that i always get back the right value...
greetings,
Matthias
PS: sorry for my bad english...
|
|
|
Goto Forum:
Current Time: Mon Apr 28 11:17:21 CEST 2025
Total time taken to generate the page: 0.03040 seconds
|