View Issue Details

IDProjectCategoryView StatusLast Update
0003965SymmetricDSBugpublic2019-05-17 19:52
ReporterhanesAssigned To 
Prioritynormal 
Status confirmedResolutionopen 
Product Version3.10.2 
Target VersionFixed in Version 
Summary0003965: Oracle's LONG type is incorrectly mapped to MariaDB's MEDIUMTEXT. Should be LONGTEXT
DescriptionLONG type could be larger than MEDIUMTEXT supports.

Source table:

create table test8 (mylong long,
    myId varchar(256), primary key (myId));

Resulting Create Table on MariaDB:

 
[store-001] - DefaultDatabaseWriter - About to create table using the following definition: <?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="dataextractor">
    <table name="TEST8">
        <column name="MYID" primaryKey="true" required="true" type="VARCHAR" size="256">
            <platform-column name="oracle" type="VARCHAR2" size="256"/>
        </column>
        <column name="MYLONG" type="LONGVARCHAR" size="0">
            <platform-column name="oracle" type="LONG"/>
        </column>
    </table>
</database>
[store-001] - MariaDBDatabasePlatform - Running alter sql:
CREATE TABLE `test8`(
    `myid` VARCHAR(256) NOT NULL,
    `mylong` MEDIUMTEXT NULL,
    PRIMARY KEY (`myid`)
);

[store-001] - PullService - Pull data received from corp:000:000 on queue default. 4 rows and 3 batches were processed. (sym_table_reload_request, test8)
[store-001] - RouterService - Routed 3 data events in 19 ms
[store-001] - DefaultDatabaseWriter - About to create table using the following definition: <?xml version="1.0"?>
<!DOCTYPE database SYSTEM "http://db.apache.org/torque/dtd/database">
<database name="dataextractor">
    <table name="TEST8">
        <column name="MYID" primaryKey="true" required="true" type="VARCHAR" size="256">
            <platform-column name="oracle" type="VARCHAR2" size="256"/>
        </column>
        <column name="MYLONG" type="LONGVARCHAR" size="0">
            <platform-column name="oracle" type="LONG"/>
        </column>
    </table>
</database>
[store-001] - MariaDBDatabasePlatform - Tables up to date. No alters found for test8
[store-001] - PullService - Pull data received from corp:000:000 on queue default. 1 rows and 1 batches were processed. (test8)


Tagsddl/schema, dialect: mysql/mariadb

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-05-15 15:08 hanes New Issue
2019-05-15 15:08 hanes Status new => confirmed
2019-05-17 19:52 elong Tag Attached: ddl/schema
2019-05-17 19:52 elong Tag Attached: dialect: mysql/mariadb