~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/dict/dict0dict.c

  • Committer: Stewart Smith
  • Date: 2010-05-13 05:00:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1530.
  • Revision ID: stewart@flamingspork.com-20100513050009-8b9o9maoxn02e7g5
increase maximum size of an indexed column to 1023 from 767. This means on disk format changes (which we don't mind) as well as some test cases changes that were previously seeing the 767 limit. In one case, the test needed to be updated as it now hit the 3500 byte total index size limit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1740
1740
        if (field->fixed_len > DICT_MAX_INDEX_COL_LEN) {
1741
1741
                field->fixed_len = 0;
1742
1742
        }
1743
 
#if DICT_MAX_INDEX_COL_LEN != 768
 
1743
#if DICT_MAX_INDEX_COL_LEN != 1024
1744
1744
        /* The comparison limit above must be constant.  If it were
1745
1745
        changed, the disk format of some fixed-length columns would
1746
1746
        change, which would be a disaster. */
1747
 
# error "DICT_MAX_INDEX_COL_LEN != 768"
 
1747
# error "DICT_MAX_INDEX_COL_LEN != 1024"
1748
1748
#endif
1749
1749
 
1750
1750
        if (!(col->prtype & DATA_NOT_NULL)) {