Activating index change "STARTING" working as "LIKE" in join condition [CORE1153] #1574
Submitted by: Umberto Masotti (umasotti)
Is related to QA47
select distinct mm.MATRICOLA, mm.UTENTE, dd.facolta, dd.cognome, dd.nome,
has different result sets if a particular index is activated:
Adopted plan when activated
In the lesser result set, the clause "STARTING" works as "like", "equal" or "NOT DISTINCT"
The tables are:
ALTER TABLE DOCENTI ADD CONSTRAINT PK_DOCENTI PRIMARY KEY (ANNO, PERIODO, CODICECORSO, INSEGNAMENTO)
this is the problematic index:
This is the second table in the query
CREATE TABLE MATRICOLE (
The text was updated successfully, but these errors were encountered:
Commented by: @asfernandes
This simple patch should fix the problem, but I'm not sure if the expression index code for index matching is correct for others operators too.
RCS file: /cvsroot/firebird/firebird2/src/jrd/Optimizer.cpp,v