-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error message for invalid real cast
The error message for invalid cast from REAL -> BIGINT/INTEGER/SMALLINT/TINYINT was previously returning the integer bits underlying the float instead of the float value itself. This fixes that to use the float value in the error message. For example, casting a NaN value to bigint that was represented as 0xFFC00000 would fail with the message "Unable to cast -4194304 to bigint". Now the error message will say "Unable to cast NaN to bigint".
- Loading branch information
1 parent
97eed74
commit 8e95218
Showing
2 changed files
with
22 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters