#1 2018-02-19 14:33:08

camu72
Member
From: Salta - Argentina
Registered: 2015-07-12
Posts: 28

SQLFieldType inconsistency after instantiating TSQLRecord

Hi...I just finish the actualization (with GIT) of mormot framework, and I'm not sure that this is a bug, but in previous versions, after a TSQLRecord instance is create, when the fields is TID type, SQLFieldType is tfsInteger, when in previous version of the framework was tfsTID.

Previous versions of framework:
SQLFieldRTTITypeName: 'TID'  and SQLFieldType: sftTID
Actual version of framwokr:
SQLFieldRTTITypeName: 'TID'  and SQLFieldType: sftTInteger

This is a bug?

I work with win7 32 bits - Delphi 7.

Another cuestion: how check in the source the version of mormot framwork?

Thanks....

Offline

#2 2018-02-19 15:44:06

mpv
Member
From: Ukraine
Registered: 2012-03-24
Posts: 1,571
Website

Re: SQLFieldType inconsistency after instantiating TSQLRecord

You can found version is inside SynopseCommit.inc file.

Offline

#3 2018-02-19 17:33:54

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

Re: SQLFieldType inconsistency after instantiating TSQLRecord

With Delphi 7 and current version (1.18.4313), TTypeInfo.GetSQLFieldType returns sftTID when the field type is TID.
Only the SQLFieldType is ftInt64 - as expected, and as was always the case.

So I'm not able to reproduce your issue.
Perhaps the TID type you used for your field definition is not the TID as defined in mORMot.pas.

Offline

#4 2018-02-19 18:04:24

camu72
Member
From: Salta - Argentina
Registered: 2015-07-12
Posts: 28

Re: SQLFieldType inconsistency after instantiating TSQLRecord

Thanks mpv...
Ab, thx too for your quick aswer.... I Will Chek yours observations...

Offline

Board footer

Powered by FluxBB