mariadb/mysql-test/suite/ibmdb2i/r
V Narayanan e346434449 Bug#45983 ibmdb2i_create_index_option=1 not working for primary key
With ibmdb2i_create_index_option set to 1, creating an IBMDB2I table
with a primary key should produce an additional index that uses EBCDIC
hexadecimal sorting. However, this does not work. Adding indexes that
are not primary keys does work. The ibmdb2i_create_index_option should
be honoured when creating a table with a primary key.

This patch adds code to the create() function to check for the value
of the ibmdb2i_create_index_option variable and, when appropriate, to 
generate a *HEX-based shadow index in DB2 for the primary key. Previously 
this behavior was limited to secondary indexes.

Additionally, this patch restricts the creation of shadow indexes to
cases in which a non-*HEX sort sequence is used, as the documentation
for ibmdb2i_create_index_option describes. Previously, the shadow index
would in some cases be created even when the MySQL-specific index used
*HEX sorting, leading to redundant indexes.

Finally, the code used to generate the list of fields for indexes 
and the code used to generate the SQL statement for the shadow
indexes has been refactored into individual functions.
2009-07-08 14:40:01 +05:30
..
ibmdb2i_bug_44020.result Importing test cases for IBMDB2I 2009-04-14 16:32:55 +05:30
ibmdb2i_bug_44025.result Importing test cases for IBMDB2I 2009-04-14 16:32:55 +05:30
ibmdb2i_bug_44232.result Bug#44232 Error msg should be improved when collation not supported. 2009-05-14 16:05:09 +05:30
ibmdb2i_bug_44610.result Bug#44610 RCDFMT clause requested when creating DB2 table 2009-05-17 21:55:23 +05:30
ibmdb2i_bug_45196.result Bug#45196 Some collations do not sort correctly with IBMDB2I 2009-06-29 07:32:17 +05:30
ibmdb2i_bug_45793.result Bug#45793 macce charset causes error with IBMDB2I 2009-07-02 13:34:23 +05:30
ibmdb2i_bug_45983.result Bug#45983 ibmdb2i_create_index_option=1 not working for primary key 2009-07-08 14:40:01 +05:30
ibmdb2i_collations.result Bug#45803 Inaccurate estimates for partial key values with IBMDB2I 2009-07-06 14:19:32 +05:30