hello.
latest Lazarus win32 with ZeosLib 7.3 and sql server 2014
In my case:
varArray := ZQuery.Lookup'('ID', valueID, 'ID;DateAndTime;');
varArray [1] is null;
for me I fixed in ZVariant.pas
function EncodeVariant(const Value: TZVariant): Variant;
added:
vtTimeStamp: // MYFIF
begin
if TryTimeStampToDateTime(Value.VTimeStamp, dt)
then Result := dt
else Result := Null;
end;
ZQuery.Lookup does not return TDateTime value
-
- Platinum Boarder
- Posts: 1962
- Joined: 17.01.2011, 14:17
Re: ZQuery.Lookup does not return TDateTime value
Hello and welcome to the forums
Your fix has been included in Rev. 6714. Thank you for helping
Best regards,
Jan
Your fix has been included in Rev. 6714. Thank you for helping
Best regards,
Jan
- EgonHugeist
- Zeos Project Manager
- Posts: 1936
- Joined: 31.03.2011, 22:38
Re: ZQuery.Lookup does not return TDateTime value
I found some more missing conversions and did add all of them in https://sourceforge.net/p/zeoslib/code-0/6716/
Best regards, Michael
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/
You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/