Subject | gbak -c with existing database |
---|---|
Author | blescouet |
Post date | 2006-04-07T13:58:50Z |
Hi all,
using FB 1.5.x, gbak -c with an existing database file and a user
which isn't the database's owner works : the database is replaced by the
backup and the owner has changed ! IMHO it's an odd behaviour, I
expected gbak would raise an error like 'file already exists...' or
'bad database owner...' or something else. I made another test, just
replacing -c by -r and then it raised an error "[...] cannot restore
over current database[...]" which is logical.
Is it an intended behaviour, and I have misunderstoud something, or a
bug in FB ?
B.L.
using FB 1.5.x, gbak -c with an existing database file and a user
which isn't the database's owner works : the database is replaced by the
backup and the owner has changed ! IMHO it's an odd behaviour, I
expected gbak would raise an error like 'file already exists...' or
'bad database owner...' or something else. I made another test, just
replacing -c by -r and then it raised an error "[...] cannot restore
over current database[...]" which is logical.
Is it an intended behaviour, and I have misunderstoud something, or a
bug in FB ?
B.L.