diff options
author | Sergei Golubchik <serg@mysql.com> | 2009-05-04 22:33:23 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mysql.com> | 2009-05-04 22:33:23 +0200 |
commit | ad7518418ca73f9ed25f5c4e45826d055d3ceac7 (patch) | |
tree | 2c7fffd24732e835d1f2922055e690988dff453b /sql/item.cc | |
parent | 7e66dbea482d7801e9650d58db9b872556322e75 (diff) | |
download | mariadb-git-ad7518418ca73f9ed25f5c4e45826d055d3ceac7.tar.gz |
bug#44166
removed few sprintf's
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/sql/item.cc b/sql/item.cc index d1418b9a137..4d9dc50226f 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -3390,14 +3390,12 @@ static void mark_as_dependent(THD *thd, SELECT_LEX *last, SELECT_LEX *current, current->mark_as_dependent(last); if (thd->lex->describe & DESCRIBE_EXTENDED) { - char warn_buff[MYSQL_ERRMSG_SIZE]; - sprintf(warn_buff, ER(ER_WARN_FIELD_RESOLVED), - db_name, (db_name[0] ? "." : ""), - table_name, (table_name [0] ? "." : ""), - resolved_item->field_name, - current->select_number, last->select_number); - push_warning(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, - ER_WARN_FIELD_RESOLVED, warn_buff); + push_warning_printf(thd, MYSQL_ERROR::WARN_LEVEL_NOTE, + ER_WARN_FIELD_RESOLVED, ER(ER_WARN_FIELD_RESOLVED), + db_name, (db_name[0] ? "." : ""), + table_name, (table_name [0] ? "." : ""), + resolved_item->field_name, + current->select_number, last->select_number); } } |