TIBCRestoreService Errors

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Wade
Posts: 31
Joined: Sun 03 Jan 2010 06:04

TIBCRestoreService Errors

Post by Wade » Sat 18 Sep 2010 04:38

If I use TIBCRestoreService to restore a multi-file database, it raises the error "unrecognized service parameter block."

In "procedure TIBCRestoreService.SetServiceStartOptions;"

Code: Select all

p := Pos('=', FDatabase[i]);
  if p  0 then begin
  AddServiceStartParam(SPBConstantValues[isc_spb_dbname], Copy(FDatabase[i], 1, p - 1));
  AddServiceStartParam(isc_spb_res_length, StrToInt(Copy(FDatabase[i], p + 1, MaxInt)));
end
The second AddServiceStartParam needs to be changed to:

Code: Select all

AddServiceStartParam32(isc_spb_res_length, StrToInt(Copy(FDatabase[i], p + 1, MaxInt)));
Also, in the same area of code, a few lines earlier:

Code: Select all

p := Pos('=', FBackupFile[i]);
if p  0 then begin
  AddServiceStartParam(isc_spb_bkp_file, Copy(FBackupFile[i], 1, p - 1));
  AddServiceStartParam(isc_spb_bkp_length, StrToInt(Copy(FBackupFile[i], p + 1, MaxInt)));      
end
I may be wrong on this, but why is isc_spb_bkp_length (the second AddServiceStartParam line) being specified for a restore? It's not like you can tell FB to restore part of a backup file.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 22 Sep 2010 10:08

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next IBDAC build.

Wade
Posts: 31
Joined: Sun 03 Jan 2010 06:04

Post by Wade » Mon 11 Oct 2010 05:06

Fixed in version 3.5 ????????????????????????????????
More information on IBDAC 3.50 changes below.

Fixed bug with the LIKE keyword in the TDataSet.Filter property
Fixed bug with filling default expression for fields in the design mode for inactive dataset
Fixed bug in TIBCAlerter

AndreyZ

Post by AndreyZ » Mon 11 Oct 2010 14:16

Notice that the latest version of IBDAC (3.50.0.17) was released on the 13th of September 2010. You started this topic on the 18th of September 2010.
Please, be more careful. This fix will be included in the next IBDAC build.

Post Reply