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

Error "page 0 is of wrong type (expected 6, found 1)" is thrown while accessing a non-corrupted table [CORE2766] #3158

Closed
firebird-automations opened this issue Nov 22, 2009 · 11 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Is related to QA425

create table t_master (id int not null, name varchar(64));
alter table t_master add constraint PK_master primary key (id);

create table t_detail (id_master int not null, name varchar(64));
alter table t_detail add constraint FK_detail foreign key (id_master) references t_master (id);

commit;

insert into t_master values (1, '1');
insert into t_detail values (1, 'a');
commit;

insert into t_master values (3, '2');
delete from t_master where id = 3;
commit;

drop table t_detail;
commit;

delete from t_master;

Commits: 08e0e23 40bcd07

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Only v2.5 is affected.
It seems that bug is related with the fix for CORE1938.

It is enough to remove line

relation->rel_flags |= REL_check_existence;

in dfw.epp around line 3767

to "fix" this bug

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: Open [ 1 ] => In Progress [ 3 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Fix Version: 2.5 RC2 [ 10372 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

status: In Progress [ 3 ] => Open [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Version: 3.0 Initial [ 10301 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

summary: page 0 is of wrong type (expected 6, found 1) => Error "page 0 is of wrong type (expected 6, found 1)" is thrown while accessing a non-corrupted table

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Link: This issue is related to QA425 [ QA425 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pmakowski

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

status: Closed [ 6 ] => Closed [ 6 ]

QA Status: Done successfully

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