From 113eff24aff962809e79acdcfb53cc2ac81e09e2 Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Mon, 31 Mar 2025 13:36:57 +0300 Subject: [PATCH] HCK-10529: updated adapter config to properly handle hasmaxLength on char --- polyglot/adapter.json | 10 ++++++++++ polyglot/convertAdapter.json | 11 +++++++++++ 2 files changed, 21 insertions(+) diff --git a/polyglot/adapter.json b/polyglot/adapter.json index 4d99cca..deb4d36 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -118,6 +118,16 @@ "length": 21844 } }, + { + "from": { + "type": "varchar", + "mode": "char", + "hasMaxLength": true + }, + "to": { + "length": 255 + } + }, { "from": { "type": "nvarchar", diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index b23dea5..245610e 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -39,12 +39,23 @@ { "from": { "childType": "char", + "mode": "varchar", "length": 21844 }, "to": { "hasMaxLength": true } }, + { + "from": { + "childType": "char", + "mode": "char", + "length": 255 + }, + "to": { + "hasMaxLength": true + } + }, { "from": { "mode": "varbinary",