Issue Details (XML | Word | Printable)

Key: CORE-2876
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Alexander Peshkov
Reporter: prenosil
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Firebird Core

Wrong backup mode when using "alter database add difference file"

Created: 19/Feb/10 01:29 AM   Updated: 14/Feb/11 12:00 PM
Component/s: Engine
Affects Version/s: 2.5 RC2
Fix Version/s: 2.5 RC3, 3.0 Alpha 1

Time Tracking:
Not Specified

Environment: Superserver, WinXP

Planning Status: Unspecified


 Description  « Hide
Try to specify illegal filename or nonexistent directory

====================
alter database add difference file '****';

alter database begin backup;

Statement failed, SQLCODE = -902
[335544344] I/O error during "CreateFile (create)" operation for file "****"
[335544733] -Error while trying to create file
[14696098] -(Incorrect file name).

alter database end backup;

Statement failed, SQLCODE = -607
[335544351] unsuccessful metadata update
[335544382] -Database is not in the physical backup mode

alter database drop difference file;

Statement failed, SQLCODE = -607
[335544351] unsuccessful metadata update
[335544832] -Cannot change difference file name while database is in backup mode

====================

The engine is a bit confused whether it is in backup mode or not :)
The "drop difference file" will succeed only after disconnecting all connections.

 All   Comments   Work Log   Change History   Version Control   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Alexander Peshkov added a comment - 14/Mar/10 03:29 PM
Added a bit more 'intellectual' error handling.