We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The BIN_SHR function applies sign extension on SMALLINT, INTEGER and BIGINT values, but doesn't do so on INT128.
BIN_SHR
For example:
select bin_shr(cast(-1 as bigint), 1) as for_bigint, bin_shr(cast(-1 as int128), 1) for_int128 from rdb$database;
This returns
FOR_BIGINT FOR_INT128 ===================== ============================================= -1 170141183460469231731687303715884105727
However, expected for FOR_INT128 would be -1 as well.
FOR_INT128
-1
The text was updated successfully, but these errors were encountered:
NOTE: 170141183460469231731687303715884105727 is 0x7fffffffffffffffffffffffffffffff, while expected is 0xffffffffffffffffffffffffffffffff
Sorry, something went wrong.
Fix for #7603: BIN_SHR on INT128 does not apply sign extension
3da900b
5361769
(cherry picked from commit 3da900b)
@@@ QA NOTE @@@ Test not needed. Issue is covered by one of examples in functional/datatypes/test_int128_binary_operations.py
AlexPeshkoff
No branches or pull requests
The
BIN_SHR
function applies sign extension on SMALLINT, INTEGER and BIGINT values, but doesn't do so on INT128.For example:
This returns
However, expected for
FOR_INT128
would be-1
as well.The text was updated successfully, but these errors were encountered: