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

gbak - backup succeeded, restore failed [CORE2458] #2872

Closed
firebird-automations opened this issue May 9, 2009 · 5 comments
Closed

gbak - backup succeeded, restore failed [CORE2458] #2872

firebird-automations opened this issue May 9, 2009 · 5 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: Petr Zajic (xzajic)

Duplicates CORE1748

Let's have a database with a table:
create table test (id integer);

and data:
insert into test (id) values (1);

Later, we can alter table with something like:
alter table test add name varchar (100) not null;

Succeeded, but table contains (or, can contain) "invalid" data - in our case column is added, and for existing data values in "name" column are set to NULL (!)

Never mind; let's backup:
gbak -v -t -user SYSDBA -password "masterkey" localhost:<database> <target>
Succeeded.

And now problem: If I try to RESTORE from that backup, it FAILED:
gbak -c -v -REP -user SYSDBA -password masterkey <path to backup> localhost:<database>

gbak:restoring data for table TEST
gbak: ERROR:validation error for column NAME, value "*** null ***"
gbak: ERROR: warning -- record could not be restored
gbak:Exiting before completion due to errors

I thing it's too bad - GBAK allows me to BACKUP, but restore in this case is not possible ;-(

@firebird-automations
Copy link
Collaborator Author

Commented by: Claudio Valderrama C. (robocop)

Duplicates CORE1748

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

Link: This issue duplicates CORE1748 [ CORE1748 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @dyemanov

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

resolution: Duplicate [ 3 ]

@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

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

No branches or pull requests

1 participant