Skip to content

Commit c331f8b

Browse files
HCK-10530: updated adapter config to handle haxMaxLength for char and nchar (#169)
1 parent 183d9b8 commit c331f8b

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

polyglot/adapter.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,16 @@
8686
"length": 32767
8787
}
8888
},
89+
{
90+
"from": {
91+
"type": "varchar",
92+
"mode": "char",
93+
"hasMaxLength": true
94+
},
95+
"to": {
96+
"length": 2000
97+
}
98+
},
8999
{
90100
"from": {
91101
"type": "nvarchar",
@@ -95,6 +105,16 @@
95105
"length": 32767
96106
}
97107
},
108+
{
109+
"from": {
110+
"type": "nvarchar",
111+
"mode": "nchar",
112+
"hasMaxLength": true
113+
},
114+
"to": {
115+
"length": 2000
116+
}
117+
},
98118
{
99119
"from": {
100120
"type": "binary",

polyglot/convertAdapter.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,24 @@
8484
"hasMaxLength": true
8585
}
8686
},
87+
{
88+
"from": {
89+
"mode": "char",
90+
"length": 2000
91+
},
92+
"to": {
93+
"hasMaxLength": true
94+
}
95+
},
96+
{
97+
"from": {
98+
"mode": "nchar",
99+
"length": 2000
100+
},
101+
"to": {
102+
"hasMaxLength": true
103+
}
104+
},
87105
{
88106
"from": {
89107
"type": "binary",

0 commit comments

Comments
 (0)