View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004003 | SymmetricDS | Bug | public | 2019-06-13 17:56 | 2019-06-25 18:06 |
Reporter | elong | Assigned To | elong | ||
Priority | normal | ||||
Status | closed | Resolution | fixed | ||
Product Version | 3.10.2 | ||||
Target Version | 3.10.3 | Fixed in Version | 3.10.3 | ||
Summary | 0004003: MySQL table creation failed for ENUM during initial load | ||||
Description | Table with enum does not use correct SQL to create the table on the target. The XML in the log looks correct: <!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database"> <database name="dataextractor"> <table name="fruits"> <column name="id" primaryKey="true" required="true" type="INTEGER" size="10"> <platform-column name="mysql" type="INT" size="10"/> </column> <column name="fruit" type="CHAR" size="6"> <platform-column name="mysql" type="ENUM" size="6" enumValues="apple,orange,pear"/> </column> </table> </database> But the SQL it generates is not correct: CREATE TABLE `fruits`( `id` INT NOT NULL, `fruit` CHAR(6) NULL, PRIMARY KEY (`id`) ); Here is the correct SQL: CREATE TABLE `fruits`( `id` INT NOT NULL, `fruit` ENUM('apple','orange','pear') NULL, PRIMARY KEY (`id`) ); | ||||
Tags | ddl/schema, dialect: mysql/mariadb | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-06-13 17:56 | elong | New Issue | |
2019-06-13 17:56 | elong | Status | new => assigned |
2019-06-13 17:56 | elong | Assigned To | => elong |
2019-06-13 17:56 | elong | Tag Attached: ddl/schema | |
2019-06-13 17:56 | elong | Tag Attached: dialect: mysql/mariadb | |
2019-06-13 18:02 | elong | Status | assigned => resolved |
2019-06-13 18:02 | elong | Resolution | open => fixed |
2019-06-13 18:02 | elong | Fixed in Version | => 3.10.3 |
2019-06-13 19:00 | admin | Changeset attached | => SymmetricDS 3.10 7c2f34f3 |
2019-06-25 18:06 | admin | Status | resolved => closed |