--- mysql-5.1/sql/sql_yacc.yy 2007-05-08 12:25:51.000000000 +0200 +++ mysql-5.1-truncate/sql/sql_yacc.yy 2007-05-08 15:55:42.000000000 +0200 @@ -6741,6 +6741,13 @@ { $$= new (YYTHD->mem_root) Item_func_replace($3,$5,$7); } | TRUNCATE_SYM '(' expr ',' expr ')' { $$= new (YYTHD->mem_root) Item_func_round($3,$5,1); } + | TRUNCATE_SYM '(' expr ')' + { + THD *thd= YYTHD; + Item *i1= new (thd->mem_root) Item_int((char*) "0",(int32) 0,1); + + $$= new (thd->mem_root) Item_func_round($3,i1,1); + } | WEEK_SYM '(' expr ')' { THD *thd= YYTHD;