Skip to content

Commit e2d5eb6

Browse files
author
Alexey Botchkov
committed
MDEV-25263 JSON_TABLE: json_table test fails with valgrind.
Field reset added.
1 parent 11c8ce4 commit e2d5eb6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sql/json_table.cc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,7 @@ bool Create_json_table::finalize(THD *thd, TABLE *table,
722722
m_null_count & 7);
723723
m_null_count+= (field->field_length & 7);
724724
}
725-
/*
726-
Here we'd call the field->reset(), but we're doing it later
727-
in Table_function_json_table::setup as we define charsets there.
728-
*/
725+
field->reset();
729726

730727
/*
731728
Test if there is a default field value. The test for ->ptr is to skip

0 commit comments

Comments
 (0)