nntp2http.com
Posting
Suche
Optionen
Hilfe & Kontakt

Re: mysql bug?

Von: Stefan Braumeister (sbraumi@gmx.net) [Profil]
Datum: 13.11.2007 21:22
Message-ID: <fhd11r$8bm$1@online.de>
Newsgroup: de.comp.datenbanken.mysql
Keith Sauvant schrieb:
> Hallo zusammen,
>
> 5.0.27-community-nt unter Windows XP zeigt folgendes Verhalten:

Hab ich auch hier auf einem Testrechner.

>
> CREATE TABLE `test` (
> `test_col` DECIMAL( 10, 2 ) NOT NULL
> ) ENGINE = MYISAM ;
>
>
> INSERT INTO `test`.`test` (
> `test_col`
> ) VALUES (
> '4.56'
> );
>
>
> SELECT * FROM test WHERE test_col='4.56'
> -> no result

Die Abfrage ist auch falsch, richtig ist:

SELECT * FROM test WHERE test_col=4.56;

>
> Das MERKWÜRDIGE: mit '4.57' funktionierts!

Tut es nicht:-)

mysql> select * from test where test_col = 4.56;
+----------+
| test_col |
+----------+
|     4.56 |
+----------+
1 row in set (0.00 sec)

mysql> select * from test where test_col = '4.56';
Empty set (0.00 sec)

mysql> select * from test where test_col = '4.57';
Empty set (0.00 sec)

>
> Kann das jemand mit seiner Version reproduzieren und/oder mir/sich
> erklären?
>
> Gruß aus Aachen
> Keith

[ Auf dieses Posting antworten ]