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-issue-importer opened this issue Oct 17, 2010 · 8 comments
Closed

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

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

Comments

@firebird-issue-importer

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-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 17, 2010

Modified by: @hvlad

assignee: Vlad Khorsun [ hvlad ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 17, 2010

Commented by: @hvlad

Fix for 2.5.1 is committed, 2.1.4 and 3.0 follow soon

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Oct 17, 2010

Modified by: @hvlad

Fix Version: 2.1.4 [ 10361 ]

Fix Version: 2.5.1 [ 10333 ]

Fix Version: 3.0 Alpha 1 [ 10331 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 25, 2010

Commented by: @hvlad

Back\Front ported into 2.1.4 and 3.0

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Nov 25, 2010

Modified by: @hvlad

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

resolution: Fixed [ 1 ]

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 4, 2011

Modified by: @pcisar

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

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Jan 18, 2016

Modified by: @pavel-zotov

QA Status: No test

@firebird-issue-importer
Copy link
Author

@firebird-issue-importer firebird-issue-importer commented Feb 15, 2016

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