Re: [MDB] Decimal data type issue
| From: | Lukas Smith | Date: | Mon, 26 Jan 2004 09:53:07 +0000 |
| Subject: | Re: [MDB] Decimal data type issue | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-10353@lists.php.net to get a copy of this message | ||
Thierry Bothorel wrote:
Hi Lukas, According to the docs, by default MDB use 2 places to the right of the decimal point, << but this may be changed when setting the database connection >>.Correct. This is the case for all drivers where decimal types are emulated.
Could you please explain that, as the currrent doc about Connect does not mention how to do that.Actually in MDB1 this is a property and not an option. There is unfortunately no easy way to make it an option at this point. So the solution for now is: $mdb = MDB::connect($dsn); $mdb->decimal_places = $some_integer; regards, Lukas Smith smith@backendmedia.com _______________________________ BackendMedia www.backendmedia.com berlin@backendmedia.com Linn Zwoch Smith GbR Pariser Str. 44 D-10707 Berlin Tel +49 30 83 22 50 00 Fax +49 30 83 22 50 07