Table of Contents

Search

  1. Preface
  2. Overview
  3. Datatype Mappings for DB2 for Linux, UNIX, and Windows Sources
  4. Datatype Mappings for Microsoft SQL Server Sources
  5. Datatype Mappings for MySQL Sources
  6. Datatype Mappings for Oracle Sources
  7. Datatype Mappings for Virtual Source Columns

Datatype Mapping Reference

Datatype Mapping Reference

DB2 Source and MemSQL Target

DB2 Source and MemSQL Target

The following table identifies the recommended datatype mappings for Data Replication configurations with a DB2 for Linux, UNIX, and Windows source and a MemSQL target:
DB2 Source Datatype
MemSQL Target Datatype
Comments
BIGINT
BIGINT
-
BLOB
BLOB
Data Replication does not extract LOB data from compressed rows.
Use the global.lob_truncation_size runtime parameter to set the maximum size of a source LOB value that the Applier and InitialSync can replicate to the target. Maximum supported size for change data capture is 50 MB.
CHARACTER(
n
)
CHAR(
n
)
-
CHARACTER FOR BIT DATA(
n
)
BINARY(
n
)
-
CLOB
LONGTEXT
Data Replication does not extract LOB data from compressed rows.
Use the global.lob_truncation_size runtime parameter to set the maximum size of a source LOB value that the Applier and InitialSync can replicate to the target. Maximum supported size for change data capture is 50 MB.
DATE
DATE
-
DBCLOB
LONGTEXT
Data Replication does not extract LOB data from compressed rows.
Use the global.lob_truncation_size runtime parameter to set the maximum size of a source LOB value that the Applier and InitialSync can replicate to the target. Maximum supported size for change data capture is 50 MB.
DECFLOAT
VARCHAR(45)
-
DECIMAL(
p
,
s
)
  • DECIMAL(
    p
    ,
    s
    )
    Mapping condition:
    (
    p
    <= 31) and (
    s
    <=
    p
    ) and (0 <=
    s
    ) and (1 <=
    p
    )
  • DECIMAL(
    p
    ,
    s'
    )
    s'
    = 0
    Mapping condition:
    (
    p
    <= 31) and (
    s
    == -1) and (1 <=
    p
    )
  • DECIMAL(5,0)
    Mapping condition:
    (
    p
    == -1) and (
    s
    == -1)
-
DOUBLE
DOUBLE
-
FLOAT
DOUBLE
-
GRAPHIC(
n
)
CHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
x
TgtCharsetSize
-
INTEGER
INT
-
LONG VARCHAR(
n
)
  • VARCHAR(
    n
    )
    Mapping condition:
    21846 >
    n
  • TEXT
    Mapping condition:
    21845 <
    n
Data Replication does not extract LONG VARCHAR data from compressed rows.
LONG VARCHAR FOR BIT DATA(
n
)
BLOB(
n
)
-
LONG VARGRAPHIC(
n
)
VARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
x
TgtCharsetSize
Data Replication does not extract LONG VARGRAPHIC data from compressed rows.
REAL
FLOAT
-
SMALLINT
SMALLINT
-
TIME
TIME
-
TIMESTAMP(
n
)
  • DATETIME(
    n'
    )
    n'
    = 0
    Mapping condition:
    (
    s
    == 0)
  • DATETIME(
    n'
    )
    n'
    = 6
    Mapping condition:
    (
    s
    >= 1)
-
VARCHAR(
n
)
  • VARCHAR(
    n
    )
    Mapping condition:
    256 >
    n
  • TEXT(
    n
    )
    Mapping condition:
    255 <
    n
-
VARCHAR FOR BIT DATA(
n
)
  • VARBINARY(
    n
    )
    Mapping condition:
    (
    n
    <= 65000)
  • BLOB(
    n
    )
    Mapping condition:
    (65000 <
    n
    )
-
VARGRAPHIC(
n
)
VARCHAR(
n'
)
n'
= (
n
+
SrcMinCharsetSize
- 1) /
SrcMinCharsetSize
x
TgtCharsetSize
-

0 COMMENTS

We’d like to hear from you!