diff options
author | konstantin@mysql.com <> | 2004-05-19 16:42:29 +0400 |
---|---|---|
committer | konstantin@mysql.com <> | 2004-05-19 16:42:29 +0400 |
commit | e13e9288c98f5186fd0f534d0d486084e7df2a0a (patch) | |
tree | f1e194f0321c00e3d34498a4ba83ff99fc89f47f /sql/set_var.cc | |
parent | fdc0f0e781051150ac187a92df1ff8f9ae3286c7 (diff) | |
download | mariadb-git-e13e9288c98f5186fd0f534d0d486084e7df2a0a.tar.gz |
Fix for Bug#3754 "SET GLOBAL myisam_max_sort_file_size doesn't
work as expected": precision-losing conversion removed from
sys_var_thd_ulonglong.
Diffstat (limited to 'sql/set_var.cc')
-rw-r--r-- | sql/set_var.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/set_var.cc b/sql/set_var.cc index eb94ad2ebf6..1657d0d0bcb 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -965,11 +965,11 @@ bool sys_var_thd_ulonglong::update(THD *thd, set_var *var) { ulonglong tmp= var->value->val_int(); - if ((ulonglong) tmp > max_system_variables.*offset) + if (tmp > max_system_variables.*offset) tmp= max_system_variables.*offset; if (option_limits) - tmp= (ulong) getopt_ull_limit_value(tmp, option_limits); + tmp= getopt_ull_limit_value(tmp, option_limits); if (var->type == OPT_GLOBAL) { /* Lock is needed to make things safe on 32 bit systems */ |