REQ-2135: add some notes

This commit is contained in:
yanglin 2024-04-02 17:14:17 +08:00
parent 7120ed731a
commit 45702327cf
2 changed files with 4 additions and 4 deletions

View File

@ -105,17 +105,17 @@ class EvalVisitor implements SQLASTVisitor {
@Override
public void endVisit(SQLNumberExpr x) {
x.putAttribute(VALUE, x.getNumber());
x.putAttribute(VALUE, x.getValue());
}
@Override
public void endVisit(SQLSmallIntExpr x) {
x.putAttribute(VALUE, x.getNumber());
x.putAttribute(VALUE, x.getValue());
}
@Override
public void endVisit(SQLIntegerExpr x) {
x.putAttribute(VALUE, x.getNumber());
x.putAttribute(VALUE, x.getValue());
}
@Override

View File

@ -61,7 +61,7 @@ class Record {
return value instanceof Byte ? (Byte) value : Byte.parseByte(str);
else if (type == BigDecimal.class)
return value instanceof BigDecimal ? (BigDecimal) value : new BigDecimal(str);
log.warn("unsupported number value. expectedType={}, actualValue={}", type, value);
log.warn("Unsupported number value. expectedType={}, actualValue={}", type, value);
return null;
}