Changeset 5537


Ignore:
Timestamp:
Dec 21, 2010, 1:52:31 PM (12 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1566: MySQL 5.5 no longer supports CREATE TABLE ... TYPE=InnoDB

Changes the default dialect to org.hibernate.dialect.MySQL5InnoDBDialect. An additional problem was found in ContextData.java which incorrectly used type="string" length="65535" for a column declaration. We must use type="text" instead. Unfortunately this means that BASE will not install on MySQL 5.5 until 2.17 is released.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/config/dist/base.config

    r5442 r5537  
    2828# MySQL
    2929# -----
    30 db.dialect          = org.hibernate.dialect.MySQLInnoDBDialect
     30db.dialect          = org.hibernate.dialect.MySQL5InnoDBDialect
    3131db.driver           = com.mysql.jdbc.Driver
    3232db.url              = jdbc:mysql://localhost/base2?characterEncoding=UTF-8&useCursorFetch=true&defaultFetchSize=100&useServerPrepStmts=true
  • trunk/src/core/net/sf/basedb/core/data/ContextData.java

    r4889 r5537  
    253253    @hibernate.collection-key column="`context_id`"
    254254    @hibernate.collection-index column="`name`" type="string" length="255"
    255     @hibernate.collection-element column="`value`" type="string" length="65535"
     255    @hibernate.collection-element column="`value`" type="text"
    256256  */
    257257  public Map<String, String> getSettings()
Note: See TracChangeset for help on using the changeset viewer.