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

page 0 is of wrong type (expected 6, found 1) [CORE3188] #3562

Closed
firebird-automations opened this issue Oct 17, 2010 · 8 comments
Closed

page 0 is of wrong type (expected 6, found 1) [CORE3188] #3562

firebird-automations opened this issue Oct 17, 2010 · 8 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Run Firebird 2.1 or 2.5, CS or SC

1)
1st isql session :
...\firebird\bin>isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database 't.fdb';
SQL>

2)
2nd isql session :
...\firebird\bin>isql t.fdb
Database: t.fdb
SQL>

3)
1st isql session :
SQL> create table tmpdat(id int not null primary key);
SQL>

4)
2nd isql session :
SQL> drop table tmpdat;
Statement failed, SQLSTATE = XX001
database file appears corrupt (...\FIREBIRD\BIN\T.FDB)
-wrong page type
-page 0 is of wrong type (expected 6, found 1)
SQL>

5) Validation found no errors

Firebird before v2.1 also have this issue but it have different consequences:

1st isql session :
...\firebird\bin>isql
Use CONNECT or CREATE DATABASE to specify a database
SQL> create database 't.fdb';
SQL>

2)
2nd isql session :
...\firebird\bin>isql t.fdb
Database: t.fdb
SQL>

3)
1st isql session :
SQL> create table tmpdat(id int not null primary key);
SQL> insert into tmpdat values (1);
SQL> commit;
SQL>

4)
2nd isql session :
SQL> drop table tmpdat;
SQL> exit;

5)
1st isql session :
SQL> exit;

6) Run validation
...\firebird\bin>gfix -v -fu T.FDB
Summary of validation errors

    Number of record level errors   : 1

firebird.log contains
Database: ...\FIREBIRD\BIN\T.FDB
Record 0 is wrong length in table (128)

Commits: 272adc2 53dd0b1 9ddc0ef

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Fix for 2.5.1 is committed, 2.1.4 and 3.0 follow soon

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 2.5.1 [ 10333 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

Back\Front ported into 2.1.4 and 3.0

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

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

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

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