You've already forked mariadb-connector-c
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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user