implode() in MDB_QueryTool - decimal-point -> comma
| From: | Lukas Ruetz | Date: | Sun, 14 May 2006 16:58:48 +0000 |
| Subject: | implode() in MDB_QueryTool - decimal-point -> comma | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24070@lists.php.net to get a copy of this message | ||
Hi
I'm not sure if this has anything to do with QueryTool but in
every case there is something wrong with implode()
The symptom is that I can't insert floats because the decimal-points
become commas in MDB/QueryTool/Query.php -> add(). var_dump shows me
that my floats in the array have the correct type, but if the array
is processed by implode() the decimal-points become commas in the
resulting string.
The strange thing is that implode(', ', $newData) does this incorrect
transforming inside Query.php but _not_ if i test this in a simple
script where implode() leaves the decimal-point untouched.
What could be the problem? Why does implode() behave differently?
I don't see the mistake.
PHP 4.4.0
MDB 1.3.0 stable
MDB_QueryTool 1.1.1 stable
PEAR 1.4.6 stable
Postgres 8.0.3
the DB-field is declared as decimal(5,2)
thanks
luk