Skip to content

Commit

Permalink
Added explanatory comment
Browse files Browse the repository at this point in the history
  • Loading branch information
CurtHagenlocher committed Nov 7, 2023
1 parent 10a677a commit 2354164
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions go/adbc/driver/snowflake/driver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -752,6 +752,8 @@ func (suite *SnowflakeTests) TestIntDecimalLowPrecision() {
query := "SELECT CAST('" + numberString + fmt.Sprintf("' AS NUMBER(%d, %d)) AS RESULT", precision, scale)
decimalNumber, err := decimal128.FromString(numberString, int32(precision), int32(scale))
suite.NoError(err)
// The current behavior of the driver for decimal128 values too large to fit into 64 bits is to simply
// return the low 64 bits of the value.
number := int64(decimalNumber.LowBits())

suite.Require().NoError(suite.stmt.SetOption(driver.OptionUseHighPrecision, adbc.OptionValueDisabled))
Expand Down

0 comments on commit 2354164

Please sign in to comment.