index not used if column compared to function result (upper)
-------------------------------------------------------------
Key: CORE-3696
URL: http://tracker.firebirdsql.org/browse/CORE-3696
Project: Firebird Core
Issue Type: Bug
Affects Versions: 2.5.1, 2.1.1
Environment: win7, 32bit
Reporter: Lukas Masak
Priority: Minor
create table test (col1 varchar(20) collate UTF8);
CREATE INDEX IDX_TEST1 ON TEST computed by (upper(COL1));
select * from test where upper(col1) like upper('b%');
> PLAN (TEST NATURAL)
select * from test where upper(col1) like 'B%';
> PLAN (TEST INDEX (IDX_TEST1))
CREATE INDEX IDX_TEST1 ON TEST (COL1); same plans
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Systems Optimization Self Assessment
Improve efficiency and utilization of IT resources. Drive out cost and
improve service delivery. Take 5 minutes to use this Systems Optimization
Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel