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
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.
The text was updated successfully, but these errors were encountered:
Link: This issue duplicates CORE2440 [ CORE2440 ]
Sorry, something went wrong.
assignee: Dmitry Yemanov [ dimitr ]
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 ]
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.
status: Resolved [ 5 ] => Closed [ 6 ]
dyemanov
No branches or pull requests
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.
The text was updated successfully, but these errors were encountered: