View Issue Details

IDProjectCategoryView StatusLast Update
0003964SymmetricDSBugpublic2022-08-30 13:04
Reporterhanes Assigned Toemiller  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.10.2 
Target Version3.14.1Fixed in Version3.14.1 
Summary0003964: Oracle's REAL datatype should map to DOUBLE in MariaDB, not FLOAT
DescriptionCurrently, REAL is mapped to a FLOAT in MariaDB. Should be mapped to a DOUBLE.

Interestingly, the XML passes FLOAT over as a FLOAT(63) from Oracle, which is accurate (FLOAT has a binary precision of 63 on Oracle)

create table test26 (myreal real,
     myId varchar(256), primary key (myId));


Results in the following Create Table on MariaDB side:



[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="TEST26">
        <column name="MYID" primaryKey="true" required="true" type="VARCHAR" size="256">
            <platform-column name="oracle" type="VARCHAR2" size="256"/>
        </column>
        <column name="MYREAL" type="REAL" size="63">
            <platform-column name="oracle" type="FLOAT" size="63"/>
        </column>
    </table>
</database>
[store-001] - MariaDBDatabasePlatform - Running alter sql:
CREATE TABLE `test26`(
    `myid` VARCHAR(256) NOT NULL,
    `myreal` FLOAT,
    PRIMARY KEY (`myid`)
);

[store-001] - PullService - Pull data received from corp:000:000 on queue default. 4 rows and 2 batches were processed. (sym_table_reload_request, test26)
[store-001] - RouterService - Routed 3 data events in 18 ms

Tagsddl/schema, dialect: mysql/mariadb

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.14 36e63560

2022-08-16 15:03:27

evan-miller-jumpmind

Details Diff
0003964: Mapped Oracle REAL type to MariaDB DOUBLE type Affected Issues
0003964
mod - symmetric-db/src/main/java/org/jumpmind/db/platform/mysql/MySqlDdlBuilder.java Diff File

Issue History

Date Modified Username Field Change
2019-05-15 18:57 hanes New Issue
2019-05-15 18:57 hanes Status new => confirmed
2019-05-17 23:52 elong Tag Attached: ddl/schema
2019-05-17 23:52 elong Tag Attached: dialect: mysql/mariadb
2022-08-16 15:03 emiller Assigned To => emiller
2022-08-16 15:03 emiller Status confirmed => resolved
2022-08-16 15:03 emiller Resolution open => fixed
2022-08-16 15:03 emiller Fixed in Version => 3.14.1
2022-08-16 16:00 Changeset attached => SymmetricDS 3.14 36e63560
2022-08-30 13:04 admin Status resolved => closed