diff options
author | Igor Babaev <igor@askmonty.org> | 2009-11-09 18:32:39 -0800 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2009-11-09 18:32:39 -0800 |
commit | d749c7e60061fd328e95f74d2d77fc59312da3b1 (patch) | |
tree | 152399c01e2cfe90637108d45146c48d9f4d6904 /sql/sql_show.cc | |
parent | 90a4a3dcd7049b65ba59c57bdb434cd8b9b3b823 (diff) | |
parent | 9b7a0fddbea952372adc04b1c098411b19cb173b (diff) | |
download | mariadb-git-d749c7e60061fd328e95f74d2d77fc59312da3b1.tar.gz |
Merge
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r-- | sql/sql_show.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc index 2c52e8eb918..df51421a3a9 100644 --- a/sql/sql_show.cc +++ b/sql/sql_show.cc @@ -5624,6 +5624,12 @@ TABLE *create_schema_table(THD *thd, TABLE_LIST *table_list) { DBUG_RETURN(0); } + /* + Create a type holder, as we want the type of the item to defined + the type of the object, not the value + */ + if (!(item= new Item_type_holder(thd, item))) + DBUG_RETURN(0); item->unsigned_flag= (fields_info->field_flags & MY_I_S_UNSIGNED); item->decimals= fields_info->field_length%10; item->max_length= (fields_info->field_length/100)%100; @@ -7111,8 +7117,6 @@ bool show_create_trigger(THD *thd, const sp_name *trg_name) /* Perform closing actions and return error status. */ } - DBUG_ASSERT(num_tables == 1); - Table_triggers_list *triggers= lst->table->triggers; if (!triggers) |