FirebirdSQL / NETProvider

Firebird ADO.NET Data Provider
https://www.firebirdsql.org/en/net-provider/
Other
159 stars 65 forks source link

Bad message error received [DNET116] #127

Closed firebird-automations closed 16 years ago

firebird-automations commented 16 years ago

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;";

    //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.

firebird-automations commented 16 years ago

Commented by: @carlosga

it should be fixed in SVN

firebird-automations commented 16 years ago
Modified by: @carlosga status: Open \[ 1 \] =\> Closed \[ 6 \] resolution: Fixed \[ 1 \]