mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-31 08:42:33 +02:00
+ date/time stuff is written in native format
git-svn-id: trunk@1853 -
This commit is contained in:
parent
2ba05e2f84
commit
74e93711df
@ -88,7 +88,6 @@ type
|
||||
function Fetch(cursor : TSQLCursor) : boolean; virtual; abstract;
|
||||
procedure AddFieldDefs(cursor: TSQLCursor; FieldDefs : TfieldDefs); virtual; abstract;
|
||||
procedure UnPrepareStatement(cursor : TSQLCursor); virtual; abstract;
|
||||
|
||||
procedure FreeFldBuffers(cursor : TSQLCursor); virtual; abstract;
|
||||
function LoadField(cursor : TSQLCursor;FieldDef : TfieldDef;buffer : pointer) : boolean; virtual; abstract;
|
||||
function GetTransactionHandle(trans : TSQLHandle): pointer; virtual; abstract;
|
||||
@ -196,6 +195,7 @@ type
|
||||
function Fetch : boolean; override;
|
||||
function LoadField(FieldDef : TFieldDef;buffer : pointer) : boolean; override;
|
||||
// abstract & virtual methods of TDataset
|
||||
procedure DataConvert(Field: TField; Source, Dest: Pointer; ToNative: Boolean); override;
|
||||
procedure UpdateIndexDefs; override;
|
||||
procedure SetDatabase(Value : TDatabase); override;
|
||||
Procedure SetTransaction(Value : TDBTransaction); override;
|
||||
@ -678,6 +678,16 @@ begin
|
||||
result := (Database as tSQLConnection).LoadField(FCursor,FieldDef,buffer)
|
||||
end;
|
||||
|
||||
procedure TSQLQuery.DataConvert(Field: TField; Source, Dest: Pointer; ToNative: Boolean);
|
||||
|
||||
begin
|
||||
{
|
||||
all data is in native format for these types, so no conversion is needed.
|
||||
}
|
||||
If not (Field.DataType in [ftDate,ftTime,ftDateTime]) then
|
||||
Inherited DataConvert(Field,Source,Dest,ToNative);
|
||||
end;
|
||||
|
||||
procedure TSQLQuery.InternalAddRecord(Buffer: Pointer; AAppend: Boolean);
|
||||
begin
|
||||
// not implemented - sql dataset
|
||||
|
Loading…
Reference in New Issue
Block a user