View Issue Details

IDProjectCategoryView StatusLast Update
0005313SymmetricDSBugpublic2022-06-06 12:37
Reporteremiller Assigned Toelong  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.8.0 
Target Version3.13.5Fixed in Version3.13.5 
Summary0005313: Null default values become string values when replicating tables from Oracle to MariaDB
DescriptionWhen replicating tables from Oracle to MariaDB, default values that are set to (null) in the Oracle database show up as '(null)' string values in the MariaDB database.
Steps To ReproduceOracle:
create table mytest (id integer primary key, name varchar(30) default (null));

Replicate table to MySQL
create table mytest (id integer primary key, name varchar(30) default '(null)');

<database xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="dbexport" encoding="UTF-8">
    <table name="MYNULLTEST">
        <column name="ID" primaryKey="true" primaryKeySeq="1" required="true" type="NUMERIC" size="38">
            <platform-column name="oracle" type="NUMBER" size="38"/>
        </column>
        <column name="NAME" type="VARCHAR" size="30" default="(null)">
            <platform-column name="oracle" type="VARCHAR2" size="30" default="(null)"/>
        </column>
    </table>
</database>

CREATE TABLE MYNULLTEST(
    ID NUMBER(38,0) NOT NULL,
    NAME VARCHAR2(30) DEFAULT 'null'
);
ALTER TABLE MYNULLTEST
    ADD CONSTRAINT MYNULLTEST_PK PRIMARY KEY (ID);
Tagsddl/schema

Activities

There are no notes attached to this issue.

Related Changesets

SymmetricDS: 3.13 735214ff

2022-05-31 12:39:59

admin

Details Diff
0005313: detect null default value on Oracle Affected Issues
0005313
mod - symmetric-db/src/main/java/org/jumpmind/db/platform/AbstractDdlBuilder.java Diff File

SymmetricDS: 3.14 39e8293e

2022-05-31 12:39:59

admin

Details Diff
0005313: detect null default value on Oracle Affected Issues
0005313
mod - symmetric-db/src/main/java/org/jumpmind/db/platform/AbstractDdlBuilder.java Diff File

Issue History

Date Modified Username Field Change
2022-05-27 15:10 emiller New Issue
2022-05-27 15:10 emiller Tag Attached: ddl/schema
2022-05-27 20:29 elong Assigned To => elong
2022-05-27 20:29 elong Status new => assigned
2022-05-27 20:29 elong Product Version 3.13.0 => 3.8.0
2022-05-27 20:29 elong Steps to Reproduce Updated View Revisions
2022-05-31 12:41 elong Status assigned => resolved
2022-05-31 12:41 elong Resolution open => fixed
2022-05-31 12:41 elong Fixed in Version => 3.13.5
2022-05-31 13:00 admin Changeset attached => SymmetricDS 3.13 735214ff
2022-05-31 13:00 admin Changeset attached => SymmetricDS 3.14 39e8293e
2022-06-06 12:37 admin Status resolved => closed