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?
to your account
Submitted by: @dyemanov
Is related to QA566
SELECT LIST(F, '')
SELECT CAST(ASCII_CHAR(0XFF) AS BLOB SUB_TYPE 0) AS F
SELECT CAST(ASCII_CHAR(0XDE) AS BLOB SUB_TYPE 0) AS F
returns 0x2E2E instead of the expected 0xFFDE. Internally the contents is treated as text and thus gets corrected by the blob filter (non-ASCII characters are replaced with dots).
The plain concatenation works correctly though:
SELECT CAST(ASCII_CHAR(0XFF) AS BLOB SUB_TYPE 0) || CAST(ASCII_CHAR(0XDE) AS BLOB SUB_TYPE 0)
The text was updated successfully, but these errors were encountered:
assignee: Adriano dos Santos Fernandes [ asfernandes ]
Sorry, something went wrong.
Commented by: @asfernandes
This issue brings a question...
select cast(cast(x'FE' as blob sub_type binary) as varchar(10) character set octets) from rdb$database;
returns 2E (in octets), which is '.'
Is it correct or no?
Commented by: @dyemanov
I'd say it's incorrect either. Binary data (regardless being blob or string) should not be treated as text data (and thus no transliteration must happen).
status: Open [ 1 ] => Resolved [ 5 ]
resolution: Fixed [ 1 ]
Fix Version: 3.0 Alpha 1 [ 10331 ]
Link: This issue is related to QA566 [ QA566 ]
status: Resolved [ 5 ] => Resolved [ 5 ]
QA Status: Done successfully
Commented by: @pcisar
status: Resolved [ 5 ] => Closed [ 6 ]
No branches or pull requests