diff options
author | unknown <monty@mysql.com> | 2005-11-23 22:58:53 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2005-11-23 22:58:53 +0200 |
commit | 039168c2fa724b9ed87ce2f19a7ea20acbd8a1de (patch) | |
tree | 8972ae3c8dffff8f3b6f27565d191af346c9ac8d /sql/sp_head.cc | |
parent | fe245ed8ba1258e1f3920e449338ea92e3a3a96e (diff) | |
parent | f631b361b6119fb73df38602ad58e140848f92d7 (diff) | |
download | mariadb-git-039168c2fa724b9ed87ce2f19a7ea20acbd8a1de.tar.gz |
Merge mysql.com:/home/my/mysql-5.1
into mysql.com:/home/my/mysql-5.1-TDC
mysql-test/r/variables.result:
Auto merged
mysql-test/t/variables.test:
Auto merged
sql/ha_berkeley.cc:
Auto merged
sql/ha_federated.cc:
Auto merged
sql/ha_federated.h:
Auto merged
sql/ha_innodb.cc:
Auto merged
sql/ha_myisammrg.cc:
Auto merged
sql/ha_ndbcluster.cc:
Auto merged
sql/handler.cc:
Auto merged
sql/item.cc:
Auto merged
sql/item.h:
Auto merged
sql/item_cmpfunc.cc:
Auto merged
sql/item_func.cc:
Auto merged
sql/item_subselect.cc:
Auto merged
sql/item_sum.cc:
Auto merged
sql/item_timefunc.cc:
Auto merged
sql/key.cc:
Auto merged
sql/mysqld.cc:
Auto merged
sql/opt_range.cc:
Auto merged
sql/parse_file.cc:
Auto merged
sql/set_var.cc:
Auto merged
sql/slave.cc:
Auto merged
sql/sp.cc:
Auto merged
sql/sp_head.cc:
Auto merged
sql/sp_head.h:
Auto merged
sql/sql_acl.cc:
Auto merged
sql/sql_class.cc:
Auto merged
sql/sql_class.h:
Auto merged
sql/sql_lex.cc:
Auto merged
sql/sql_lex.h:
Auto merged
sql/sql_load.cc:
Auto merged
sql/sql_parse.cc:
Auto merged
sql/sql_select.cc:
Auto merged
sql/sql_show.cc:
Auto merged
sql/sql_table.cc:
Auto merged
sql/sql_trigger.cc:
Auto merged
sql/sql_view.cc:
Auto merged
sql/structs.h:
Auto merged
sql/field.cc:
Merge with global tree
sql/sql_base.cc:
Merge with global tree
sql/table.cc:
Merge with global tree
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index ab564cef7c1..0800089209c 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -243,6 +243,10 @@ sp_eval_func_item(THD *thd, Item **it_addr, enum enum_field_types type, Item *old_item_next, *old_free_list, **p_free_list; DBUG_PRINT("info", ("type: %d", type)); + LINT_INIT(old_item_next); + LINT_INIT(old_free_list); + LINT_INIT(p_free_list); + if (!it) DBUG_RETURN(NULL); @@ -518,7 +522,7 @@ void sp_head::init_strings(THD *thd, LEX *lex, sp_name *name) { DBUG_ENTER("sp_head::init_strings"); - uchar *endp; /* Used to trim the end */ + const uchar *endp; /* Used to trim the end */ /* During parsing, we must use thd->mem_root */ MEM_ROOT *root= thd->mem_root; @@ -711,12 +715,14 @@ sp_head::make_field(uint max_length, const char *name, TABLE *dummy) Field *field; DBUG_ENTER("sp_head::make_field"); - field= ::make_field((char *)0, - !m_returns_len ? max_length : m_returns_len, - (uchar *)"", 0, m_returns_pack, m_returns, m_returns_cs, - m_geom_returns, Field::NONE, - m_returns_typelib, - name ? name : (const char *)m_name.str, dummy); + field= ::make_field(dummy->s, (char *)0, + !m_returns_len ? max_length : m_returns_len, + (uchar *)"", 0, m_returns_pack, m_returns, m_returns_cs, + m_geom_returns, Field::NONE, + m_returns_typelib, + name ? name : (const char *)m_name.str); + if (field) + field->init(dummy); DBUG_RETURN(field); } |