diff --git a/sql/sql_update.cc b/sql/sql_update.cc index cfa383ce9cb..c988d746500 100644 --- a/sql/sql_update.cc +++ b/sql/sql_update.cc @@ -828,7 +828,7 @@ int mysql_update(THD *thd, if (error < 0) { - char buff[STRING_BUFFER_USUAL_SIZE]; + char buff[MYSQL_ERRMSG_SIZE]; my_snprintf(buff, sizeof(buff), ER(ER_UPDATE_INFO), (ulong) found, (ulong) updated, (ulong) thd->cuted_fields); thd->row_count_func=