Hi,
I have problems creating a table from a SELECT command involving the SUM() function. For example:
Server version: 5.1.14 build number (revision)=IB_3.1_r3027_3069(ice)
mysql> CREATE TABLE test (id int, value int);
Query OK, 0 rows affected (0.03 sec)
mysql> CREATE TEMPORARY TABLE tmp SELECT id, SUM(value) FROM test GROUP BY id;
ERROR 8 (HY000): Unsupported data type.
The same command works correctly with other aggregate functions (AVG, COUNT, MIN or MAX).
Does anybody have any idea about possible workarounds?
Thanks
Pavel

