New issue
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
substring similar - extra characters in the result for non latin characters [CORE6158] #6407
Comments
Commented by: @mrotteveel It would be helpful to explicitly point out the problem (eg by showing the expected vs actual result). |
Commented by: Alex Bekhtin (afgm) expected result: ===========================================================================
|
Commented by: @asfernandes Connection charset? |
Commented by: @asfernandes Are you using latest snapshot? |
Commented by: @livius2 It looks like latest "Environment Firebird-4.0.0.1629-0_x64" |
Commented by: @asfernandes I cannot reproduce. Then I need completely reproducible test case, with data saved in file and isql -i command. |
Commented by: Alex Bekhtin (afgm) SET NAMES WIN1251; CONNECT 'SOME_DB.fdb' USER 'SYSDBA' PASSWORD 'masterkey'; select substring('aaaЫЫЫccc' similar '%aaa#"%#"ccc%' escape '#') from rdb$database; |
Modified by: @asfernandesassignee: Adriano dos Santos Fernandes [ asfernandes ] |
Commented by: @asfernandes Should be fixed now. Please test. |
Commented by: Kostyukovskiy Oleg (olegvk2000) SERVER version :WI - T6 . 3.0 . 1631 FIREBIRD 4.0 BETA 1 create domain T_A64 as varchar (64) character set WIN1251 collate WIN1251; create table VALUT_LIST (NAME T_A64 not null); insert into VALUT_LIST (NAME) values ('Российский рубль'); SQL Query Error: select substring(list(http://T.NAME, '; ') from 1 for 250) from VALUT_LIST T RESULTS |
Commented by: @asfernandes Fixed. Please try again on next snapshot. |
Commented by: @pavel-zotov Checked on 4.0.0.1632 - all examples work fine. |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Resolved [ 5 ] QA Status: No test => Done successfully |
Modified by: @pavel-zotovstatus: Resolved [ 5 ] => Closed [ 6 ] |
Submitted by: Alex Bekhtin (afgm)
select substring('
aaa
/*==============================================================================
Некий текст на русском
==============================================================================*/
bbb
ccc
ddd
eee
fff
jjj
' similar '%/#*(=){3,}#"%#"(=){3,}#*/%' escape '#') from rdb$database
result
===========================================================================
Некий текст на русском
==============================================================================*/
bbb
ccc
dd
Commits: 6203f07
The text was updated successfully, but these errors were encountered: