(0003794)
nam
02-02-09 15:49
|
The original behavior should be correct because it matches PHP's.
Test Case
=========
$link = mysql_connect();
mysql_select_db("test");
mysql_query("DROP TABLE test");
mysql_query("CREATE TABLE test (id INTEGER, data DOUBLE)");
mysql_query("INSERT INTO test VALUES (123, 4.56)");
mysql_query("INSERT INTO test VALUES (0, 0.0)");
$result = mysql_query("SELECT * FROM test");
while ($line = mysql_fetch_assoc($result)) {
var_dump($line);
}
Expected Output
===============
array(2) {
["id"]=>
string(3) "123"
["data"]=>
string(4) "4.56"
}
array(2) {
["id"]=>
string(1) "0"
["data"]=>
string(3) "0"
} |