From 46b08c61662504f39e570b4ae981347b42c5015f Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Mon, 31 Mar 2025 14:46:05 +0300 Subject: [PATCH] HCK-10530: updated adapter config to handle haxMaxLength for char and nchar --- polyglot/adapter.json | 20 ++++++++++++++++++++ polyglot/convertAdapter.json | 18 ++++++++++++++++++ 2 files changed, 38 insertions(+) diff --git a/polyglot/adapter.json b/polyglot/adapter.json index 60c265d..63deeef 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -86,6 +86,16 @@ "length": 32767 } }, + { + "from": { + "type": "varchar", + "mode": "char", + "hasMaxLength": true + }, + "to": { + "length": 2000 + } + }, { "from": { "type": "nvarchar", @@ -95,6 +105,16 @@ "length": 32767 } }, + { + "from": { + "type": "nvarchar", + "mode": "nchar", + "hasMaxLength": true + }, + "to": { + "length": 2000 + } + }, { "from": { "type": "binary", diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index b453d21..a25d147 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -84,6 +84,24 @@ "hasMaxLength": true } }, + { + "from": { + "mode": "char", + "length": 2000 + }, + "to": { + "hasMaxLength": true + } + }, + { + "from": { + "mode": "nchar", + "length": 2000 + }, + "to": { + "hasMaxLength": true + } + }, { "from": { "type": "binary",