#1 2022-04-24 19:30:49

Leslie7
Member
Registered: 2015-06-25
Posts: 248

mORMot2-Lazarus compile error in SynCrossPlatformREST.CallGetResult

ab,

just a very small issue:

SynCrossPlatformREST.pas(2918,15) Error: Incompatible types: got "Variant" expected "TID"

/// marshall {result:...,id:...} and {result:...} body answers
function CallGetResult(const aCall: TSQLRestURIParams; var outID: TID): variant;
{$ifndef ISSMS}
var doc: TJSONVariantData;
    jsonres: string;
{$endif}
begin
  ...
  outID := doc.Value['id'];
  {$endif}
end;                   

Offline

#2 2022-04-24 20:09:22

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mORMot2-Lazarus compile error in SynCrossPlatformREST.CallGetResult

With which compiler? On which target?

A TID is a Int64 so it should compile.
This is a compiler issue.

Offline

#3 2022-04-24 20:14:11

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: mORMot2-Lazarus compile error in SynCrossPlatformREST.CallGetResult

Lazarus fixes + FPC Fixes + Windows 7

The error comes when trying to compile mormot_cross.lpk

Last edited by Leslie7 (2022-04-24 20:17:10)

Offline

#4 2022-04-25 10:47:29

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: mORMot2-Lazarus compile error in SynCrossPlatformREST.CallGetResult

This is mORMot 1, right?

Offline

#5 2022-04-28 16:53:50

Leslie7
Member
Registered: 2015-06-25
Posts: 248

Re: mORMot2-Lazarus compile error in SynCrossPlatformREST.CallGetResult

Yes, my rookie mistake. I wanted to test M2, but picked the lpk's from the wrong folder.
Neverless the error is  still strange, should not happen. Maybe an other compiler issue.

Offline

Board footer

Powered by FluxBB