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

After backup/restore the indexes by expression on computed field are not working properly. [CORE5800] #6062

Closed
firebird-issue-importer opened this issue Apr 19, 2018 · 5 comments

Comments

@firebird-issue-importer

Submitted by: Polesov (polesov)

Duplicates CORE2440

Firebird version WI-V6.3.7.27050

Create the table:
create table T (
A char(1),
B char(1),
C computed by (A || ' ' || B)
);

Create an index by expression on the calculated field:
create index IDX_T_C on T computed by (lower( C ));

Insert data into table:

insert into T ( A, B ) values ( 'A', 'B' );
insert into T ( A, B ) values ( 'C', 'D' );
insert into T ( A, B ) values ( 'E', 'F' );
commit;

Execute the query:
select * from T where lower( C ) = 'a b';

Result:
A B C
====== ====== ======
A B A B
plan (T index (IDX_T_C))

After backup/restore, the query does not return data:
select * from T where lower( C ) = 'a b';

No have results:
plan (T index (IDX_T_C))

Change the query without using the index:
select * from T where lower( C ) || '' = 'a b';

Result:
A B C
====== ====== ======
A B A B
plan (T natural)

After rebuilding the index, the indexes working properly:
alter index IDX_T_C active;

====== Test Details ======

See test for CORE5118. Bug was fixed, this ticket (5800) can be closed.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Apr 20, 2018

Modified by: @hvlad

Link: This issue duplicates CORE2440 [ CORE2440 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 17, 2019

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 17, 2019

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 4.0 Beta 1 [ 10750 ]

Fix Version: 2.5.9 [ 10862 ]

Fix Version: 3.0.5 [ 10885 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2019

Modified by: @pavel-zotov

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

QA Status: No test => Covered by another test(s)

Test Details: See test for CORE5118. Bug was fixed, this ticket (5800) can be closed.

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Mar 6, 2019

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
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants