Bug #37292 | KEY array passed into handler::add_index has incomplete information | ||
---|---|---|---|
Submitted: | 9 Jun 2008 18:29 | Modified: | 10 Jun 2008 15:09 |
Reporter: | Zardosht Kasheff (OCA) | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | 5.1.23-rc | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | add_index, handler::add_index |
[9 Jun 2008 18:29]
Zardosht Kasheff
[10 Jun 2008 14:55]
Sergei Golubchik
Right, the fix should be in sql_table.cc: /* Fix the key parts. */ part_end= key->key_part + key->key_parts; for (key_part= key->key_part; key_part < part_end; key_part++) { key_part->field= table->field[key_part->fieldnr]; + key_part->null_bit= key_part->field->null_bit; } and probably other fixes for key_part copied from open_binary_frm() are also appropriate here. Until it's done, you can use find the correct value in key_part->field->null_bit.