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
CREATE VIEW ignores PLAN [CORE203] #530
Comments
Commented by: Alice F. Bird (firebirds) Date: 2004-09-05 18:14 If anyone thinks that a PLAN option should be available in |
Commented by: Alice F. Bird (firebirds) Date: 2003-01-21 10:28 I tend to think that a PLAN option should be disallowed in the VIEW |
Modified by: @pcisarWorkflow: jira [ 10227 ] => Firebird [ 14454 ] |
Modified by: @pavel-zotovQA Status: No test |
Commented by: @pavel-zotov What's the current state of issue about forbidden PLAN specification in a view DDL ? As far as I see one may still to specify PLAN but it's ignored (as before): SQL> recreate table test(x int unique using index test_x_unq); SQL> set plan on; PLAN (T NATURAL)
============ SQL> select x from v_test t where x = 0; PLAN (T T INDEX (TEST_X_UNQ)) ------------- ? Why ?
============ SQL> select x from v_test t where x = 0 plan (t natural); -- this plan was included into this view DDL when it was created. We have to repeat it again here ? PLAN (T T NATURAL)
============ PS. Checked on: WI-V2.5.6.26980; WI-V3.0.0.32380. |
Modified by: @pavel-zotovstatus: Closed [ 6 ] => Closed [ 6 ] QA Status: No test => Deferred Test Details: Waiting for reply on comment 15/Mar/16 11:22 AM |
Modified by: @pavel-zotovstatus: Closed [ 6 ] => Closed [ 6 ] QA Status: Deferred => Done successfully Test Details: Waiting for reply on comment 15/Mar/16 11:22 AM => |
Submitted by: tord (tord)
SFID: 452120#
Submitted By: tord
When you include an explicit plan in a CREATE VIEW
statement, the plan is silently ignored.
Demonstration:
<snip>
/*
* This sql-script tests for the viewplan-bug
*
* set ISC_USER and ISC_PASSWORD, then call
* isql -i viewplan.sql
*/
create database "viewplan.gdb";
create table a (
b integer not null
);
create index a_b on a(b);
create view view_a(b) as
select b
from a
where b < 2
plan (a natural);
commit;
set plan;
set echo;
select * from view_a;
select b from a where b < 2
plan (b natural);
commit;
drop database;
<snip>
The text was updated successfully, but these errors were encountered: