mariadb/storage/ibmdb2i
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
..
CMakeLists.txt Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_blobCollection.cc Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_blobCollection.h Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_charsetSupport.cc Bug#45793 macce charset causes error with IBMDB2I 2009-07-02 13:34:23 +05:30
db2i_charsetSupport.h Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_collationSupport.cc Bug#45196 Some collations do not sort correctly with IBMDB2I 2009-06-29 07:32:17 +05:30
db2i_collationSupport.h Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_constraints.cc Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_conversion.cc Bug#45803 Inaccurate estimates for partial key values with IBMDB2I 2009-07-06 14:19:32 +05:30
db2i_errors.cc Bug#44232 Error msg should be improved when collation not supported. 2009-05-05 15:03:52 +05:30
db2i_errors.h Bug#44232 Error msg should be improved when collation not supported. 2009-05-05 15:03:52 +05:30
db2i_file.cc Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_file.h Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_global.h Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_iconv.h Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_ileBridge.cc Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_ileBridge.h Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_ioBuffers.cc Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_ioBuffers.h Import the ibmdb2i-ga4-src snapshot from IBM 2009-03-09 15:20:14 -06:00
db2i_misc.h Bug#44811 Tests with utf8 charset fail with ibmdb2i on 64bit MySQL 2009-05-29 15:01:00 +05:30
db2i_myconv.cc Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_myconv.h Bug#45803 Inaccurate estimates for partial key values with IBMDB2I 2009-07-06 14:19:32 +05:30
db2i_rir.cc Bug#45803 Inaccurate estimates for partial key values with IBMDB2I 2009-07-06 14:19:32 +05:30
db2i_safeString.h Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_sqlStatementStream.cc Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_sqlStatementStream.h Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
db2i_validatedPointer.h Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00
ha_ibmdb2i.cc Bug#45983 ibmdb2i_create_index_option=1 not working for primary key 2009-07-08 14:40:01 +05:30
ha_ibmdb2i.h Bug#45983 ibmdb2i_create_index_option=1 not working for primary key 2009-07-08 14:40:01 +05:30
Makefile.am Add new headers to noinst_HEADERS (ibmdb2i storage engine) 2009-04-01 22:18:49 +02:00
plug.in Add the IBM DB2 for i storage engine. 2009-02-15 03:18:30 +01:00