From 9685e6927a23b7e36f36b889c7ddbc191999edff Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Mon, 31 Mar 2025 12:50:20 +0300 Subject: [PATCH] HCK-10528: updated conversion and derivment configs to handle nchar and char max length --- polyglot/adapter.json | 20 ++++++++++++++++++++ polyglot/convertAdapter.json | 20 +++++++++++++++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/polyglot/adapter.json b/polyglot/adapter.json index 7f591ea..fbd453f 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -45,6 +45,16 @@ "length": 32704 } }, + { + "from": { + "type": "varchar", + "mode": "char", + "hasMaxLength": true + }, + "to": { + "length": 255 + } + }, { "from": { "type": "nvarchar", @@ -54,6 +64,16 @@ "length": 32704 } }, + { + "from": { + "type": "nvarchar", + "mode": "nchar", + "hasMaxLength": true + }, + "to": { + "length": 255 + } + }, { "from": { "type": "binary", diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 999133d..f590d7a 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -62,7 +62,25 @@ "to": { "hasMaxLength": true } - } + }, + { + "from": { + "mode": "char", + "length": 255 + }, + "to": { + "hasMaxLength": true + } + }, + { + "from": { + "mode": "nchar", + "length": 255 + }, + "to": { + "hasMaxLength": true + } + }, ] } }