45 |
|
FBTransaction; |
46 |
|
|
47 |
|
type |
48 |
< |
TPerfStatistics = array[psCurrentMemory..psFetches] of comp; |
48 |
> |
TPerfStatistics = array[psCurrentMemory..psFetches] of Int64; |
49 |
|
|
50 |
|
{ TFBStatement } |
51 |
|
|
80 |
|
function InternalOpenCursor(aTransaction: ITransaction): IResultSet; virtual; abstract; |
81 |
|
procedure FreeHandle; virtual; abstract; |
82 |
|
procedure InternalClose(Force: boolean); virtual; abstract; |
83 |
+ |
function TimeStampToMSecs(const TimeStamp: TTimeStamp): Int64; |
84 |
|
public |
85 |
|
constructor Create(Attachment: IAttachment; Transaction: ITransaction; |
86 |
|
sql: AnsiString; SQLDialect: integer); |
136 |
|
IBError(ibxeNotInTransaction,[]); |
137 |
|
end; |
138 |
|
|
139 |
+ |
function TFBStatement.TimeStampToMSecs(const TimeStamp: TTimeStamp): Int64; |
140 |
+ |
begin |
141 |
+ |
Result := TimeStamp.Time + Int64(timestamp.date)*msecsperday; |
142 |
+ |
end; |
143 |
+ |
|
144 |
|
constructor TFBStatement.Create(Attachment: IAttachment; |
145 |
|
Transaction: ITransaction; sql: AnsiString; SQLDialect: integer); |
146 |
|
begin |