summaryrefslogtreecommitdiff
path: root/sql/field.cc
diff options
context:
space:
mode:
authorGleb Shchepa <gleb.shchepa@oracle.com>2012-06-29 18:38:29 +0400
committerGleb Shchepa <gleb.shchepa@oracle.com>2012-06-29 18:38:29 +0400
commit659e76d8b4366ed62bb5a81a46eb3d6ba48a212e (patch)
treeb1f1a2d09eaaf7a70b273a2eb162a8e936c6bb5a /sql/field.cc
parente65c291807f57b9533df07963b0385cbfdd5b474 (diff)
parent521deaf36f3ae6686ebea64afe5d3195ad3f80d2 (diff)
downloadmariadb-git-659e76d8b4366ed62bb5a81a46eb3d6ba48a212e.tar.gz
auto-merge
Diffstat (limited to 'sql/field.cc')
-rw-r--r--sql/field.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/field.cc b/sql/field.cc
index 352c8025e19..bb668a118c4 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -9933,7 +9933,7 @@ Create_field::Create_field(Field *old_field,Field *orig_field)
if (length != 4)
{
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,
ER_WARN_DEPRECATED_SYNTAX,
ER(ER_WARN_DEPRECATED_SYNTAX),