Expression index may be not used for derived fields or view fields
------------------------------------------------------------------
Key: CORE-4118
URL: http://tracker.firebirdsql.org/browse/CORE-4118
Project: Firebird Core
Issue Type: Bug
Components: Engine
Affects Versions: 2.5.2 Update 1, 2.5.2, 2.5.1, 2.5.0, 3.0 Initial
Reporter: Dmitry Yemanov
Test case:
create table t (id int, d timestamp);
create index itd on t computed (cast(d as date));
select * from t
where cast(d as date) = current_date
-- PLAN (T INDEX (ITD))
select * from (select id, cast(d as date) as d from t)
where d = current_date
-- PLAN (T NATURAL)
-- expected:
-- PLAN (T INDEX (ITD))
--
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
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:
Build for Windows Store.
http://p.sf.net/sfu/windows-dev2dev
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel