Type mismatch for field 'xx' expecting: Float actual Extended

The forum for ZeosLib 7.2 Report problems. Ask for help, post proposals for the new version and Zeoslib 7.2 features here. This is a forum that will be edited once the 7.2.x version goes into RC/stable!!

My personal intention for 7.2 is to speed up the internals as optimal a possible for all IDE's. Hope you can help?! Have fun with testing 7.2
Post Reply
DPStano
Junior Boarder
Junior Boarder
Posts: 39
Joined: 16.05.2016, 09:21

Type mismatch for field 'xx' expecting: Float actual Extended

Post by DPStano »

after updating to current 7.2 patches I'm getting Type mismatch for field 'xx' expecting: Float actual Extended for all NUMERIC( 18, 4) fields Firebird 3.5

should I go back to stable version or fix these exceptions but how?
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Type mismatch for field 'xx' expecting: Float actual Extended

Post by EgonHugeist »

Hi,

i did a comparision of ZDbcInterbaseUtils.pas. Both functions (
TZSQLDA.GetFieldSqlType(Index: Word): TZSQLType
function ConvertInterbase6ToSqlType(SqlType, SqlSubType, Scale, Precision: Integer;
const CtrlsCPType: TZControlsCodePage): TZSqlType;
)
are binary equal. That type diff should not happen.

Could you please check if we're talking about:
FireBird
!7.2-patches! branch
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/

Image
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: Type mismatch for field 'xx' expecting: Float actual Extended

Post by marsupilami »

Hello DPStano,

usually this happens when you have persistent fields in you application and Zeos decides to use another TField descandant for some fields in newer versions. Usually it is enough to remove your persistent fields and readd them - Or to decide to not use persistent Fields at all ;)

Best regards,

Jan
DPStano
Junior Boarder
Junior Boarder
Posts: 39
Joined: 16.05.2016, 09:21

Re: Type mismatch for field 'xx' expecting: Float actual Extended

Post by DPStano »

when I remove it and readd it will stay same type TFloatField ... we had to revert it, i'll check it again this week
louis
Expert Boarder
Expert Boarder
Posts: 107
Joined: 02.01.2009, 19:41

Re: Type mismatch for field 'xx' expecting: Float actual Extended

Post by louis »

DPStano wrote:when I remove it and readd it will stay same type TFloatField ... we had to revert it, i'll check it again this week
Have a look for this topic http://zeoslib.sourceforge.net/viewtopi ... 40&t=92611.
I've got the same problem updating from Zeos 7.2.0b to 7.2.4-stable.

I get TFloatField in one query and TExtendedField in other query for the same field in the same table depending on writing query statements.

If I have a persistent TFloatField in a query that get TExtendedField i get Exception Type Mismatch...

Regards.
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1918
Joined: 17.01.2011, 14:17

Re: Type mismatch for field 'xx' expecting: Float actual Extended

Post by marsupilami »

Hello DPStano,

could you please check if the current Zeos-7.2-testing branch on SVN solves your problem?
Best regards,

Jan
Post Reply