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

Restore of pre ODS 11.1 database can leave RDB$RELATION_TYPE null [CORE5543] #5811

Closed
firebird-automations opened this issue May 17, 2017 · 6 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @mrotteveel

Relate to JDBC494

When restoring ODS 11.1 or older databases under Firebird 2.5 or Firebird 3 the RDB$RELATION_TYPE can remain null. This should be fixed up so the value is non-null (either as part of the restore process or somewhere in the engine).

Note that the RDB$RELATION_TYPE is not populated at all for non-system relations; this means that simply changing the value to zero is not sufficient, as that would misidentify views, etc.

To reproduce this, restore a pre ODS 11.2 database.

Commits: 56d787c c04a6ea 2d463a7

@firebird-automations
Copy link
Collaborator Author

Modified by: @mrotteveel

Link: This issue relate to JDBC494 [ JDBC494 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

assignee: Dmitry Yemanov [ dimitr ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @mrotteveel

description: Under unknown conditions (probably restores of old databases), the RDB$RELATION_TYPE can remain null instead of 0 (zero). This should be fixed up so the value is true zero (either as part of the restore process or somewhere in the engine). => When restoring ODS 11.1 or older databases under Firebird 2.5 or Firebird 3 the RDB$RELATION_TYPE can remain null. This should be fixed up so the value is non-null (either as part of the restore process or somewhere in the engine).

Note that the RDB$RELATION_TYPE is not populated at all for non-system relations; this means that simply changing the value to zero is not sufficient, as that would misidentify views, etc.

To reproduce this, restore a pre ODS 11.2 database.

summary: Restore of database can leave RDB$RELATION_TYPE null instead of 0 (zero) => Restore of pre ODS 11.1 database can leave RDB$RELATION_TYPE null

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Fixed [ 1 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

Fix Version: 3.0.3 [ 10810 ]

Fix Version: 2.5.8 [ 10809 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Done successfully

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

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