mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
More portability fixes
This commit is contained in:
parent
48e331148e
commit
5aed41290a
1 changed files with 5 additions and 8 deletions
11
sql/sp.cc
11
sql/sp.cc
|
|
@ -337,15 +337,12 @@ db_find_routine(THD *thd, int type, sp_name *name, sp_head **sphp)
|
||||||
static void
|
static void
|
||||||
sp_returns_type(THD *thd, String &result, sp_head *sp)
|
sp_returns_type(THD *thd, String &result, sp_head *sp)
|
||||||
{
|
{
|
||||||
struct {
|
|
||||||
TABLE table;
|
TABLE table;
|
||||||
TABLE_SHARE share;
|
|
||||||
} dummy;
|
|
||||||
Field *field;
|
Field *field;
|
||||||
bzero(&dummy, sizeof(dummy));
|
bzero(&table, sizeof(table));
|
||||||
dummy.table.in_use= thd;
|
table.in_use= thd;
|
||||||
dummy.table.s = &dummy.share;
|
table.s = &table.share_not_to_be_used;
|
||||||
field= sp->make_field(0, 0, &dummy.table);
|
field= sp->make_field(0, 0, &table);
|
||||||
field->sql_type(result);
|
field->sql_type(result);
|
||||||
delete field;
|
delete field;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue