Skip to content

Commit

Permalink
When reading data using JDBC, add support for the smallint and tinyin…
Browse files Browse the repository at this point in the history
…t data types (#5054)
  • Loading branch information
sjgllgh authored Dec 23, 2023
1 parent adb7f8e commit 3b01532
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,8 @@ class UJESSQLResultSet(
case null => throw new LinkisSQLException(LinkisSQLErrorCode.METADATA_EMPTY)
case "char" | "varchar" | "nvarchar" | "string" => value
case "short" => value.toShort
case "smallint" => value.toShort
case "tinyint" => value.toShort
case "int" => value.toInt
case "long" => value.toLong
case "float" => value.toFloat
Expand Down

0 comments on commit 3b01532

Please sign in to comment.