Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
xubo245 committed Jun 13, 2019
1 parent ed3be96 commit abbe07f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -87,7 +87,7 @@ public Field(String name, String type) {
this.type = DataTypes.createDefaultDecimalType();
} else {
try {
Matcher m = Pattern.compile("^decimal\\(([^)]+)\\)").matcher(type);
Matcher m = Pattern.compile("^decimal\\(([^)]+)\\)").matcher(type.toLowerCase());
m.find();
String matchedString = m.group(1);
String[] scaleAndPrecision = matchedString.split(",");
Expand Down

0 comments on commit abbe07f

Please sign in to comment.