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

Expression index based on computed fields [CORE1173] #1595

Closed
firebird-automations opened this issue Mar 18, 2007 · 7 comments
Closed

Expression index based on computed fields [CORE1173] #1595

firebird-automations opened this issue Mar 18, 2007 · 7 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Karel Rys (vandrovnik)

Relate to CORE1212
Is related to QA601

Votes: 2

Having this table:

CREATE TABLE Test (
Kod integer not null,
DatumZacatek date NOT NULL,
CasZacatek time NOT NULL,
Zacatek COMPUTED BY (DatumZacatek+CasZacatek),
CONSTRAINT Test_Key PRIMARY KEY (Kod)
);

it is possible to create computed index based on a computed field:
CREATE INDEX Test1 ON Test COMPUTED BY (Zacatek);
However, thie index is not used in SELECT * from test where zacatek>'now';

When I create the computed index this way:
CREATE INDEX Test2 ON Test COMPUTED BY (DatumZacatek+CasZacatek);
such index is used for SELECT * from test where zacatek>'now';

I think it should not be possible to create a computed index based on a computed field at all, or both my examples should work the same.

Kind regards,

Karel Rys

@firebird-automations
Copy link
Collaborator Author

Modified by: Sean Leyne (seanleyne)

Link: This issue relate to CORE1212 [ CORE1212 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 11701 ] => Firebird [ 14148 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @dyemanov

v2.5.4 has it fixed, hence I'm closing the ticket.

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 2.5.4 [ 10585 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA601 [ QA601 ]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants