[#6485] Added support for parsing SQL Server VARCHAR(max) length
This commit is contained in:
parent
380cb706c8
commit
38ec49ba87
@ -5658,7 +5658,8 @@ final class ParserImpl implements Parser {
|
||||
|
||||
private static final DataType<?> parseDataTypeLength(ParserContext ctx, DataType<?> result) {
|
||||
if (parseIf(ctx, '(')) {
|
||||
result = result.length((int) (long) parseUnsignedInteger(ctx));
|
||||
if (!parseKeywordIf(ctx, "MAX"))
|
||||
result = result.length((int) (long) parseUnsignedInteger(ctx));
|
||||
parse(ctx, ')');
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user