Skip to content

Commit 0fffc6b

Browse files
authored
HCK-10528: updated conversion and derivment configs to handle nchar and char max length (#48)
<!--do not remove this marker, its needed to replace info when ticket title is updated --> <!--jira-description-action-hidden-marker-start--> <table> <td> <a href="https://hackolade.atlassian.net/browse/HCK-10528" title="HCK-10528" target="_blank"><img alt="Sub-bug" src="https://hackolade.atlassian.net/rest/api/2/universal_avatar/view/type/issuetype/avatar/10303?size=medium" />HCK-10528</a> [DB2] char/nchar datatypes with max length incorrect derived/converted from/to Poly </td></table> <br /> <!--jira-description-action-hidden-marker-end--> ## Content Updated conversion and derivment configs to handle nchar and char max length
1 parent 7373615 commit 0fffc6b

2 files changed

Lines changed: 39 additions & 1 deletion

File tree

polyglot/adapter.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@
4545
"length": 32704
4646
}
4747
},
48+
{
49+
"from": {
50+
"type": "varchar",
51+
"mode": "char",
52+
"hasMaxLength": true
53+
},
54+
"to": {
55+
"length": 255
56+
}
57+
},
4858
{
4959
"from": {
5060
"type": "nvarchar",
@@ -54,6 +64,16 @@
5464
"length": 32704
5565
}
5666
},
67+
{
68+
"from": {
69+
"type": "nvarchar",
70+
"mode": "nchar",
71+
"hasMaxLength": true
72+
},
73+
"to": {
74+
"length": 255
75+
}
76+
},
5777
{
5878
"from": {
5979
"type": "binary",

polyglot/convertAdapter.json

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,25 @@
6262
"to": {
6363
"hasMaxLength": true
6464
}
65-
}
65+
},
66+
{
67+
"from": {
68+
"mode": "char",
69+
"length": 255
70+
},
71+
"to": {
72+
"hasMaxLength": true
73+
}
74+
},
75+
{
76+
"from": {
77+
"mode": "nchar",
78+
"length": 255
79+
},
80+
"to": {
81+
"hasMaxLength": true
82+
}
83+
},
6684
]
6785
}
6886
}

0 commit comments

Comments
 (0)