1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

Proper fix for SHOW VARS on 64-bit systems

This commit is contained in:
Sinisa@sinisa.nasamreza.org
2002-12-02 15:33:16 +02:00
parent 2c7c19769a
commit 9b331dc354
3 changed files with 6 additions and 3 deletions

View File

@@ -1145,7 +1145,10 @@ int mysqld_show(THD *thd, const char *wild, show_var_st *variables)
switch (variables[i].type){
case SHOW_LONG:
case SHOW_LONG_CONST:
net_store_data(&packet2,(int32) *(ulong*) variables[i].value);
net_store_data(&packet2,(uint32) *(ulong*) variables[i].value);
break;
case SHOW_LONG_AS_LONGLONG:
net_store_data(&packet2,(longlong) *(ulong*) variables[i].value);
break;
case SHOW_BOOL:
net_store_data(&packet2,(ulong) *(bool*) variables[i].value ?