Commit 659e76d8 authored by Gleb Shchepa's avatar Gleb Shchepa

auto-merge

parents e65c2918 521deaf3
...@@ -9933,7 +9933,7 @@ Create_field::Create_field(Field *old_field,Field *orig_field) ...@@ -9933,7 +9933,7 @@ Create_field::Create_field(Field *old_field,Field *orig_field)
if (length != 4) if (length != 4)
{ {
char buff[sizeof("YEAR()") + MY_INT64_NUM_DECIMAL_DIGITS + 1]; char buff[sizeof("YEAR()") + MY_INT64_NUM_DECIMAL_DIGITS + 1];
snprintf(buff, sizeof(buff), "YEAR(%lu)", length); my_snprintf(buff, sizeof(buff), "YEAR(%lu)", length);
push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_NOTE, push_warning_printf(current_thd, MYSQL_ERROR::WARN_LEVEL_NOTE,
ER_WARN_DEPRECATED_SYNTAX, ER_WARN_DEPRECATED_SYNTAX,
ER(ER_WARN_DEPRECATED_SYNTAX), ER(ER_WARN_DEPRECATED_SYNTAX),
......
...@@ -5473,7 +5473,7 @@ type: ...@@ -5473,7 +5473,7 @@ type:
if (errno == 0 && length <= MAX_FIELD_BLOBLENGTH && length != 4) if (errno == 0 && length <= MAX_FIELD_BLOBLENGTH && length != 4)
{ {
char buff[sizeof("YEAR()") + MY_INT64_NUM_DECIMAL_DIGITS + 1]; char buff[sizeof("YEAR()") + MY_INT64_NUM_DECIMAL_DIGITS + 1];
snprintf(buff, sizeof(buff), "YEAR(%lu)", length); my_snprintf(buff, sizeof(buff), "YEAR(%lu)", length);
push_warning_printf(YYTHD, MYSQL_ERROR::WARN_LEVEL_NOTE, push_warning_printf(YYTHD, MYSQL_ERROR::WARN_LEVEL_NOTE,
ER_WARN_DEPRECATED_SYNTAX, ER_WARN_DEPRECATED_SYNTAX,
ER(ER_WARN_DEPRECATED_SYNTAX), ER(ER_WARN_DEPRECATED_SYNTAX),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment