1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

A patch for MDEV-4912 Add a plugin to field types (column types)

Adding Column_definition::make_field() as a convenience
wrapper for ::make_field.
This commit is contained in:
Alexander Barkov
2015-11-27 20:50:19 +04:00
parent 9d5c9379a6
commit e3fed3b9b4
4 changed files with 41 additions and 54 deletions

View File

@ -16981,12 +16981,10 @@ TABLE *create_virtual_tmp_table(THD *thd, List<Column_definition> &field_list)
List_iterator_fast<Column_definition> it(field_list);
while ((cdef= it++))
{
*field= make_field(share, thd->mem_root, 0, cdef->length,
(uchar*) (f_maybe_null(cdef->pack_flag) ? "" : 0),
f_maybe_null(cdef->pack_flag) ? 1 : 0,
cdef->pack_flag, cdef->sql_type, cdef->charset,
cdef->geom_type, cdef->srid, cdef->unireg_check,
cdef->interval, cdef->field_name);
*field= cdef->make_field(share, thd->mem_root, 0,
(uchar*) (f_maybe_null(cdef->pack_flag) ? "" : 0),
f_maybe_null(cdef->pack_flag) ? 1 : 0,
cdef->field_name);
if (!*field)
goto error;
(*field)->init(table);