[fix](char) fix char column type not check lenght (#30266)

This commit is contained in:
xueweizhang
2024-01-24 20:33:12 +08:00
committed by yiguolei
parent 86d7a8be44
commit 0287651114
23 changed files with 53 additions and 26 deletions

View File

@ -196,7 +196,6 @@ public class TypeDef implements ParseNode {
} else {
name = "CHAR";
maxLen = ScalarType.MAX_CHAR_LENGTH;
return;
}
int len = scalarType.getLength();
// len is decided by child, when it is -1.

View File

@ -446,7 +446,6 @@ public class ColumnDefinition {
} else {
name = "CHAR";
maxLen = ScalarType.MAX_CHAR_LENGTH;
return;
}
int len = scalarType.getLength();
// len is decided by child, when it is -1.