Skip to content

Commit

Permalink
fix: fix return value of different null type (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
hetao92 authored Dec 13, 2021
1 parent cce0022 commit 0cf1e79
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions service/dao/dao.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ func getBasicValue(valWarp *nebula.ValueWrapper) (common.Any, error) {
return "BAD_DATA", err
case nebulaType.NullType_BAD_TYPE:
return "BAD_TYPE", err
case nebulaType.NullType_OUT_OF_RANGE:
return "OUT_OF_RANGE", err
case nebulaType.NullType_DIV_BY_ZERO:
return "DIV_BY_ZERO", err
case nebulaType.NullType_UNKNOWN_PROP:
return "UNKNOWN_PROP", err
case nebulaType.NullType_ERR_OVERFLOW:
return "ERR_OVERFLOW", err
}
return "NULL", err
} else if valType == "bool" {
Expand Down

0 comments on commit 0cf1e79

Please sign in to comment.