1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Set values for field->def and field->def_length to zero - they are populated only from

deprecated api function mysql_list_fields.
This commit is contained in:
Georg Richter
2019-02-05 13:56:59 +01:00
parent 02e7d5654d
commit 5783a8b59a

View File

@@ -815,10 +815,8 @@ unpack_fields(MYSQL_DATA *data,MA_MEM_ROOT *alloc,uint fields,
if (INTERNAL_NUM_FIELD(field))
field->flags|= NUM_FLAG;
if (default_value && row->data[7])
field->def=ma_strdup_root(alloc,(char*) row->data[7]);
else
field->def=0;
field->def=0;
field->def_length= 0;
field->max_length= 0;
}
if (field < result + fields)