In this case :
try
{
FbBackup fbBackup = new FbBackup();
fbBackup.ConnectionString = @"DataSource=localhost;Database=C:\Program Files\Firebird\Firebird_1_5\examples\EMPLOYEE.FDB; " +
"User=user;Password=password;Role=;Port=3050;Connection lifetime=;Connection timeout=;"+
"Pooling=true;MaxPoolSize=1;Dialect=3;Charset=NONE;Packet Size=8192;Server Type=0;";
//I specify 2 backup files with the same name
fbBackup\.BackupFiles\.Add\(new FbBackupFile\("samename\.fbk", 1048576\)\);
fbBackup\.BackupFiles\.Add\(new FbBackupFile\("samename\.fbk", 0\)\);
fbBackup\.Execute\(\);
\}
catch \( FbException e \)
\{
//Message of the catched exception should be "multiple sources or destinations specified" \( ErrorCode of the IscException = 336330761 \)
//but I receive "invalid BLOB ID" \( ErrorCode of the IscException = 9 ??\)
Console\.WriteLine\(e\.ErrorCode \+ " \| " \+ e\.Message\);
\}
Like the bug doesn't appear with the version 2.5 Alpha 1, I compare the sources and I noticed that the method "Identify" doesn't exist to create a GdsServiceManager but it's called in GdsDataBase.
So if I recopy this method in GdsServiceManager and I called it in the Method "Attach", the good exception is thrown.
Submitted by: Thomas Gaboriau (tgaboriau)
Assigned to: @carlosga
In this case : try { FbBackup fbBackup = new FbBackup(); fbBackup.ConnectionString = @"DataSource=localhost;Database=C:\Program Files\Firebird\Firebird_1_5\examples\EMPLOYEE.FDB; " + "User=user;Password=password;Role=;Port=3050;Connection lifetime=;Connection timeout=;"+ "Pooling=true;MaxPoolSize=1;Dialect=3;Charset=NONE;Packet Size=8192;Server Type=0;";
Like the bug doesn't appear with the version 2.5 Alpha 1, I compare the sources and I noticed that the method "Identify" doesn't exist to create a GdsServiceManager but it's called in GdsDataBase. So if I recopy this method in GdsServiceManager and I called it in the Method "Attach", the good exception is thrown.