diff options
author | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-01-16 12:49:22 +0200 |
---|---|---|
committer | Vicențiu Ciorbaru <vicentiu@mariadb.org> | 2017-01-16 12:49:22 +0200 |
commit | eddbae422bd3430f684d5cd287ca522467040c34 (patch) | |
tree | 6de344ebe9ad8feb0cc6b7494903db365d38aae1 /sql/field.cc | |
parent | 7b44c31be8d45bbb7f903ed8d3e426516cfaecfb (diff) | |
download | mariadb-git-eddbae422bd3430f684d5cd287ca522467040c34.tar.gz |
MDEV-11712: ArmHF EXPLAIN JSON garbage longlong values printed
Make sure printing with snprintf uses the correct typed parameters.
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc index 58def13f5f3..ea56489543d 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -10600,7 +10600,7 @@ Create_field::Create_field(THD *thd, Field *old_field, Field *orig_field) if (length != 4) { char buff[sizeof("YEAR()") + MY_INT64_NUM_DECIMAL_DIGITS + 1]; - my_snprintf(buff, sizeof(buff), "YEAR(%lu)", length); + my_snprintf(buff, sizeof(buff), "YEAR(%llu)", length); push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE, ER_WARN_DEPRECATED_SYNTAX, ER_THD(thd, ER_WARN_DEPRECATED_SYNTAX), |