123 |
|
|
124 |
|
implementation |
125 |
|
|
126 |
< |
uses ZStream, IBBlob, ibxscript; |
126 |
> |
uses ZStream, IBBlob, ibxscript, IBMessages; |
127 |
|
|
128 |
|
const |
129 |
|
sSectionheader = 'Version.%.3d'; |
217 |
|
Blob.Database := (Sender as TIBXScript).Database; |
218 |
|
Blob.Transaction := (Sender as TIBXScript).Transaction; |
219 |
|
Blob.Mode := bmWrite; |
220 |
< |
if not GetSourceFile(ParamName,FileName) then Exit; |
220 |
> |
if not GetSourceFile(ParamName,FileName) then |
221 |
> |
IBError(ibxeResourceFileNotFound,[FileName]); |
222 |
|
|
223 |
|
if CompareText(ExtractFileExt(FileName),'.gz') = 0 then {gzip compressed file} |
224 |
|
Source := TGZFileStream.Create(FileName,gzopenread) |