diff options
author | Sinisa@sinisa.nasamreza.org <> | 2002-12-02 15:33:16 +0200 |
---|---|---|
committer | Sinisa@sinisa.nasamreza.org <> | 2002-12-02 15:33:16 +0200 |
commit | 9b331dc3544d03e2d1613b4fb059335527b46cb5 (patch) | |
tree | b3beb5e097f4a45b094771a4feffe627e78c16c3 /sql/sql_show.cc | |
parent | 2c7c19769a989f2161754538aa6ae232420ac80e (diff) | |
download | mariadb-git-9b331dc3544d03e2d1613b4fb059335527b46cb5.tar.gz |
Proper fix for SHOW VARS on 64-bit systems
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index a8567112fe9..12979f77e56 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -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 ? |