1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug#28149 overflow in some "SHOW STATUS"-variables

changed bytes_received, bytes_sent status variables to longlong
This commit is contained in:
gluh@mysql.com/eagle.(none)
2007-06-09 17:46:09 +05:00
parent 47ecabe915
commit 068f1f7dbf
4 changed files with 8 additions and 5 deletions

View File

@ -1463,6 +1463,8 @@ static bool show_status_array(THD *thd, const char *wild,
case SHOW_LONG_CONST:
end= int10_to_str(*(long*) value, buff, 10);
break;
case SHOW_LONGLONG_STATUS:
value= ((char *) status_var + (ulonglong) value);
case SHOW_LONGLONG:
end= longlong10_to_str(*(longlong*) value, buff, 10);
break;