Ответ
virusav 13.10.2006 14:51
И правда.
mysql> select max(id) as mx from tab1 where id='-10';
+------+
| mx |
+------+
| NULL |
+------+
1 row in set, 1 warning (0.00 sec)
mysql> select max(id) as mx from tab1 where id='-10' group by id;
Empty set (0.06 sec)
Значит, дело в MySQL, но таблица пуста и можно было бы возвращать NULL.
Спасибо за ответ!