[fix](char) fix char column type not check lenght (#30266)
This commit is contained in:
@ -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.
|
||||
|
||||
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user