From 1189a63c9812fa99146143ad24d02e9c68900b2c Mon Sep 17 00:00:00 2001 From: Andrew Thornton Date: Thu, 6 Jan 2022 05:02:14 +0000 Subject: [PATCH] handle oracle Signed-off-by: Andrew Thornton --- engine.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine.go b/engine.go index 4fc83cba..b7dcf5a2 100644 --- a/engine.go +++ b/engine.go @@ -732,14 +732,14 @@ func (engine *Engine) dumpTables(ctx context.Context, tables []*schemas.Table, w } } } - } else if dstDialect.URI().DBType == schemas.DAMENG { + } else if dstDialect.URI().DBType == schemas.DAMENG || dstDialect.URI().DBType == schemas.ORACLE { if dstTable.Columns()[i].SQLType.IsBlob() { - // DAMENG uses HEXTORAW + // ORACLE/DAMENG uses HEXTORAW if _, err := fmt.Fprintf(w, "HEXTORAW('%x')", s.String); err != nil { return err } } else { - // DAMENG concatentates strings in multiple ways but uses CHAR and has CONCAT + // ORACLE/DAMENG concatentates strings in multiple ways but uses CHAR and has CONCAT // (NOTE: a NUL byte in a text segment will fail) if _, err := io.WriteString(w, "CONCAT("); err != nil { return err