From 824ead47293d8780d40b11fbb3a2143a6bcc9787 Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Fri, 21 Mar 2025 18:39:43 +0200 Subject: [PATCH 1/5] HCK-10442: add adapters to properly convert hasMaxLength property --- polyglot/adapter.json | 11 ++++++- polyglot/convertAdapter.json | 56 ++++++++++++++++++++++++++++++++++++ 2 files changed, 66 insertions(+), 1 deletion(-) create mode 100644 polyglot/convertAdapter.json diff --git a/polyglot/adapter.json b/polyglot/adapter.json index c3466eca..4c8e88e8 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -124,7 +124,16 @@ "to": { "mode": "point" } - } + }, + { + "from": { + "type": "varchar", + "hasMaxLength": true + }, + "to": { + "length": 10485760 + } + }, ] }, "postConvert": { diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json new file mode 100644 index 00000000..5a947211 --- /dev/null +++ b/polyglot/convertAdapter.json @@ -0,0 +1,56 @@ +/** + * Copyright © 2016-2022 by IntegrIT S.A. dba Hackolade. All rights reserved. + * + * The copyright to the computer software herein is the property of IntegrIT S.A. + * The software may be used and/or copied only with the written permission of + * IntegrIT S.A. or in accordance with the terms and conditions stipulated in + * the agreement/contract under which the software has been supplied. + * + * { + * "add": { + * "entity": [], + * "container": [], + * "model": [], + * "view": [], + * "field": { + * "": [] + * } + * }, + * "delete": { + * "entity": [], + * "container": [], + * "model": [], + * "view": [], + * "field": { + * "": [] + * } + * }, + * "modify": { + * "entity": [ + * { + * "from": { }, + * "to": { } + * } + * ], + * "container": [], + * "model": [], + * "view": [], + * "field": [] + * }, + * } + */ + { + "modify": { + "field": [ + { + "from": { + "mode": "varchar", + "length": 10485760 + }, + "to": { + "hasMaxLength": true + } + } + ] + } +} From a02e52a32045374886a0ec3d2eb2bdd3a2d2c76d Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Fri, 21 Mar 2025 18:43:39 +0200 Subject: [PATCH 2/5] HCK-10442: removed trailing comma --- polyglot/adapter.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polyglot/adapter.json b/polyglot/adapter.json index 4c8e88e8..bfc2629e 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -133,7 +133,7 @@ "to": { "length": 10485760 } - }, + } ] }, "postConvert": { From d7465446d459d8360ab2c62d37a8d127afdc35b5 Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Fri, 21 Mar 2025 18:56:04 +0200 Subject: [PATCH 3/5] HCK-10442: removed redundant license --- polyglot/convertAdapter.json | 1 - 1 file changed, 1 deletion(-) diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 5a947211..311c7c81 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -1,5 +1,4 @@ /** - * Copyright © 2016-2022 by IntegrIT S.A. dba Hackolade. All rights reserved. * * The copyright to the computer software herein is the property of IntegrIT S.A. * The software may be used and/or copied only with the written permission of From 85a66844698a50a834db78298b179ecf4c36fbae Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Fri, 21 Mar 2025 19:28:49 +0200 Subject: [PATCH 4/5] HCK-10442: removed redundant comment --- polyglot/convertAdapter.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/polyglot/convertAdapter.json b/polyglot/convertAdapter.json index 311c7c81..69308959 100644 --- a/polyglot/convertAdapter.json +++ b/polyglot/convertAdapter.json @@ -1,9 +1,4 @@ /** - * - * The copyright to the computer software herein is the property of IntegrIT S.A. - * The software may be used and/or copied only with the written permission of - * IntegrIT S.A. or in accordance with the terms and conditions stipulated in - * the agreement/contract under which the software has been supplied. * * { * "add": { From cb1efa5b7ccd2ebe7b866d73e17e3886b9f9f526 Mon Sep 17 00:00:00 2001 From: Nazar Kovtun Date: Mon, 24 Mar 2025 16:29:20 +0200 Subject: [PATCH 5/5] HCK-10422: made adapter more explicit --- polyglot/adapter.json | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/polyglot/adapter.json b/polyglot/adapter.json index bfc2629e..8ca9bfc2 100644 --- a/polyglot/adapter.json +++ b/polyglot/adapter.json @@ -133,6 +133,15 @@ "to": { "length": 10485760 } + }, + { + "from": { + "type": "nvarchar", + "hasMaxLength": true + }, + "to": { + "length": 10485760 + } } ] },