mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-24 10:49:12 +02:00
+ forgot to include changes in db.pp and dsparams.inc in r2663
git-svn-id: trunk@2664 -
This commit is contained in:
parent
1260b2a233
commit
30eb347b33
@ -990,7 +990,7 @@ type
|
|||||||
procedure ClearCalcFields(Buffer: PChar); virtual;
|
procedure ClearCalcFields(Buffer: PChar); virtual;
|
||||||
procedure CloseBlob(Field: TField); virtual;
|
procedure CloseBlob(Field: TField); virtual;
|
||||||
procedure CloseCursor; virtual;
|
procedure CloseCursor; virtual;
|
||||||
procedure CreateFields;
|
procedure CreateFields; virtual;
|
||||||
procedure DataEvent(Event: TDataEvent; Info: Ptrint); virtual;
|
procedure DataEvent(Event: TDataEvent; Info: Ptrint); virtual;
|
||||||
procedure DestroyFields; virtual;
|
procedure DestroyFields; virtual;
|
||||||
procedure DoAfterCancel; virtual;
|
procedure DoAfterCancel; virtual;
|
||||||
@ -1593,6 +1593,7 @@ type
|
|||||||
Function GetAsDateTime: TDateTime;
|
Function GetAsDateTime: TDateTime;
|
||||||
Function GetAsFloat: Double;
|
Function GetAsFloat: Double;
|
||||||
Function GetAsInteger: Longint;
|
Function GetAsInteger: Longint;
|
||||||
|
Function GetAsLargeInt: LargeInt;
|
||||||
Function GetAsMemo: string;
|
Function GetAsMemo: string;
|
||||||
Function GetAsString: string;
|
Function GetAsString: string;
|
||||||
Function GetAsVariant: Variant;
|
Function GetAsVariant: Variant;
|
||||||
@ -1606,6 +1607,7 @@ type
|
|||||||
Procedure SetAsDateTime(const AValue: TDateTime);
|
Procedure SetAsDateTime(const AValue: TDateTime);
|
||||||
Procedure SetAsFloat(const AValue: Double);
|
Procedure SetAsFloat(const AValue: Double);
|
||||||
Procedure SetAsInteger(AValue: Longint);
|
Procedure SetAsInteger(AValue: Longint);
|
||||||
|
Procedure SetAsLargeInt(AValue: LargeInt);
|
||||||
Procedure SetAsMemo(const AValue: string);
|
Procedure SetAsMemo(const AValue: string);
|
||||||
Procedure SetAsSmallInt(AValue: LongInt);
|
Procedure SetAsSmallInt(AValue: LongInt);
|
||||||
Procedure SetAsString(const AValue: string);
|
Procedure SetAsString(const AValue: string);
|
||||||
@ -1635,6 +1637,7 @@ type
|
|||||||
Property AsDateTime : TDateTime read GetAsDateTime write SetAsDateTime;
|
Property AsDateTime : TDateTime read GetAsDateTime write SetAsDateTime;
|
||||||
Property AsFloat : Double read GetAsFloat write SetAsFloat;
|
Property AsFloat : Double read GetAsFloat write SetAsFloat;
|
||||||
Property AsInteger : LongInt read GetAsInteger write SetAsInteger;
|
Property AsInteger : LongInt read GetAsInteger write SetAsInteger;
|
||||||
|
Property AsLargeInt : LargeInt read GetAsLargeInt write SetAsLargeInt;
|
||||||
Property AsMemo : string read GetAsMemo write SetAsMemo;
|
Property AsMemo : string read GetAsMemo write SetAsMemo;
|
||||||
Property AsSmallInt : LongInt read GetAsInteger write SetAsSmallInt;
|
Property AsSmallInt : LongInt read GetAsInteger write SetAsSmallInt;
|
||||||
Property AsString : string read GetAsString write SetAsString;
|
Property AsString : string read GetAsString write SetAsString;
|
||||||
|
@ -459,6 +459,15 @@ begin
|
|||||||
Result:=FValue;
|
Result:=FValue;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Function TParam.GetAsLargeInt: LargeInt;
|
||||||
|
begin
|
||||||
|
If IsNull then
|
||||||
|
Result:=0
|
||||||
|
else
|
||||||
|
Result:=FValue;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
Function TParam.GetAsMemo: string;
|
Function TParam.GetAsMemo: string;
|
||||||
begin
|
begin
|
||||||
If IsNull then
|
If IsNull then
|
||||||
@ -549,6 +558,12 @@ begin
|
|||||||
FDataType:=ftInteger;
|
FDataType:=ftInteger;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Procedure TParam.SetAsLargeInt(AValue: LargeInt);
|
||||||
|
begin
|
||||||
|
FValue:=AValue;
|
||||||
|
FDataType:=ftLargeint;
|
||||||
|
end;
|
||||||
|
|
||||||
Procedure TParam.SetAsMemo(const AValue: string);
|
Procedure TParam.SetAsMemo(const AValue: string);
|
||||||
begin
|
begin
|
||||||
FValue:=AValue;
|
FValue:=AValue;
|
||||||
|
Loading…
Reference in New Issue
Block a user