diff options
author | unknown <acurtis@pcgem.rdg.cyberkinetica.com> | 2005-03-10 19:42:57 +0000 |
---|---|---|
committer | unknown <acurtis@pcgem.rdg.cyberkinetica.com> | 2005-03-10 19:42:57 +0000 |
commit | 5aed41290a912118cd7488c5d9f9ce50c11a1aa0 (patch) | |
tree | 322a9552fec9dad28b7dd69d3e3638a86bd32416 /sql/sp.cc | |
parent | 48e331148e6079348046b3529cb0f9b92df57503 (diff) | |
download | mariadb-git-5aed41290a912118cd7488c5d9f9ce50c11a1aa0.tar.gz |
More portability fixes
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 0343735f2a3..84169ab8172 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -337,15 +337,12 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp) static void sp_returns_type(THD *thd, String &result, sp_head *sp) { - struct { - TABLE table; - TABLE_SHARE share; - } dummy; + TABLE table; Field *field; - bzero(&dummy, sizeof(dummy)); - dummy.table.in_use= thd; - dummy.table.s = &dummy.share; - field= sp->make_field(0, 0, &dummy.table); + bzero(&table, sizeof(table)); + table.in_use= thd; + table.s = &table.share_not_to_be_used; + field= sp->make_field(0, 0, &table); field->sql_type(result); delete field; } |