Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-5426

mysql: ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Trunk
    • None
    • framework
    • None
    • Bug Crush Event - 21/2/2015

    Description

      Due to revision 1529838, the length of data type "email" was increased from 254 to 320. But It makes the ofbiz failed to create tables such as "PRODUCT_PROMO_CODE_EMAIL" which includes an email fields as its primary key.

      The database is mysql, innodb engine and utf8 charset. The error msg:
      ERROR 1071 (42000): Specified key was too long; max key length is 767 bytes.

      I suggest to revert change of r1529838.

      Attachments

        1. OFBIZ-5426.patch
          18 kB
          Pawan Verma
        2. OFBIZ-5426.patch
          19 kB
          Pawan Verma
        3. OFBIZ-5426.patch
          23 kB
          Pawan Verma
        4. OFBIZ-5426.patch
          22 kB
          Pawan Verma
        5. OFBIZ-5426.patch
          7 kB
          Deepak Dixit

        Issue Links

          Activity

            People

              pawan Pawan Verma
              utcb Leon
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h