Skip to content

Commit 43f19cd

Browse files
nokiaMSgithubgxll
authored andcommitted
[fix][runtime] Fix issuse int + varchar with blank prefix.
1 parent 914ae47 commit 43f19cd

File tree

1 file changed

+1
-0
lines changed
  • runtime/src/main/java/io/dingodb/expr/runtime/op/cast

1 file changed

+1
-0
lines changed

runtime/src/main/java/io/dingodb/expr/runtime/op/cast/CastOp.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ public abstract class CastOp extends UnaryOp {
3636
public static String trimDigitString(String value) {
3737
int lastNumberPos = 0;
3838

39+
value = value.trim();
3940
for (int i = 0; i < value.length(); i++) {
4041
if (Character.isDigit(value.charAt(i))
4142
|| value.charAt(i) == '.'

0 commit comments

Comments
 (0)