|
@@ -593,7 +593,7 @@ var P: Pointer;
|
|
begin
|
|
begin
|
|
If IsNull then
|
|
If IsNull then
|
|
Result:=''
|
|
Result:=''
|
|
- else if (FDataType in [ftBytes, ftVarBytes]) and VarIsArray(FValue) then
|
|
|
|
|
|
+ else if (FDataType in [ftBytes, ftVarBytes, ftBlob]) and VarIsArray(FValue) then
|
|
begin
|
|
begin
|
|
SetLength(Result, (VarArrayHighBound(FValue, 1) + 1) div SizeOf(Char));
|
|
SetLength(Result, (VarArrayHighBound(FValue, 1) + 1) div SizeOf(Char));
|
|
P := VarArrayLock(FValue);
|
|
P := VarArrayLock(FValue);
|
|
@@ -700,12 +700,6 @@ begin
|
|
Value:=AValue;
|
|
Value:=AValue;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure TParam.SetAsBlobData(const AValue: TBlobData);
|
|
|
|
-begin
|
|
|
|
- FDataType:=ftBlob;
|
|
|
|
- Value:=AValue;
|
|
|
|
-end;
|
|
|
|
-
|
|
|
|
Procedure TParam.SetAsCurrency(const AValue: Currency);
|
|
Procedure TParam.SetAsCurrency(const AValue: Currency);
|
|
begin
|
|
begin
|
|
FDataType:=ftCurrency;
|
|
FDataType:=ftCurrency;
|
|
@@ -887,7 +881,7 @@ begin
|
|
AssignParam(TParam(Source))
|
|
AssignParam(TParam(Source))
|
|
else if (Source is TField) then
|
|
else if (Source is TField) then
|
|
AssignField(TField(Source))
|
|
AssignField(TField(Source))
|
|
- else if (source is TStrings) then
|
|
|
|
|
|
+ else if (Source is TStrings) then
|
|
AsMemo:=TStrings(Source).Text
|
|
AsMemo:=TStrings(Source).Text
|
|
else
|
|
else
|
|
inherited Assign(Source);
|
|
inherited Assign(Source);
|
|
@@ -1120,7 +1114,6 @@ begin
|
|
DatabaseErrorFmt(SBadParamFieldType,[Name],DataSet);
|
|
DatabaseErrorFmt(SBadParamFieldType,[Name],DataSet);
|
|
end;
|
|
end;
|
|
|
|
|
|
-
|
|
|
|
end;
|
|
end;
|
|
|
|
|
|
Procedure TParam.LoadFromFile(const FileName: string; BlobType: TBlobType);
|
|
Procedure TParam.LoadFromFile(const FileName: string; BlobType: TBlobType);
|