Skip to content
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

Closed
firebird-automations opened this issue Oct 15, 2019 · 15 comments

Comments

@firebird-automations
Copy link
Collaborator

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

@firebird-automations
Copy link
Collaborator Author

Commented by: @mrotteveel

It would be helpful to explicitly point out the problem (eg by showing the expected vs actual result).

@firebird-automations
Copy link
Collaborator Author

Commented by: Alex Bekhtin (afgm)

expected result:

===========================================================================
Некий текст на русском

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Connection charset?

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Are you using latest snapshot?

@firebird-automations
Copy link
Collaborator Author

Commented by: @livius2

It looks like latest "Environment Firebird-4.0.0.1629-0_x64"

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

I cannot reproduce. Then I need completely reproducible test case, with data saved in file and isql -i command.

@firebird-automations
Copy link
Collaborator Author

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;

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

assignee: Adriano dos Santos Fernandes [ asfernandes ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Should be fixed now. Please test.

@firebird-automations
Copy link
Collaborator Author

Modified by: @asfernandes

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

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 ('Российский рубль');
insert into VALUT_LIST (NAME) values ('Турецкая лира');
insert into VALUT_LIST (NAME) values ('Доллар США');
commit work;

SQL Query Error:

select substring(list(http://T.NAME, '; ') from 1 for 250) from VALUT_LIST T

RESULTS
CANNOT TRANSLITERATE character between character SETS.

@firebird-automations
Copy link
Collaborator Author

Commented by: @asfernandes

Fixed. Please try again on next snapshot.

@firebird-automations
Copy link
Collaborator Author

Commented by: @pavel-zotov

Checked on 4.0.0.1632 - all examples work fine.

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Resolved [ 5 ]

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Resolved [ 5 ] => Closed [ 6 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants