(ulong) thd->cuted_fields); 5.1.40 uses my_sprintf instead so doesn't crash, but the buffer allocated is still too small so the message is truncated: mysql> update t1 set a='aaaaaa19'; Query OK, 4798290 rows affected, 65535 warnings (14.58 sec) Linii identificate (matched): 4798290 ...