#1 2022-07-19 11:51:46

Milos
Member
Registered: 2021-01-04
Posts: 36

TSQLPropInfo.IsValueVoid for value of 0.1 returns true

It seems that in Mormot 1.8 TSQLPropInfo.IsValueVoid returns true for 0.xxx values e.g. 0.1 and probably -0.1 as well, it relies on GetInt64 to test whether string represents a zero and that function does its job and returns zero for anything between -1 and +1.

Offline

#2 2022-07-19 15:50:40

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

Re: TSQLPropInfo.IsValueVoid for value of 0.1 returns true

Offline

#3 2022-07-19 16:03:28

Milos
Member
Registered: 2021-01-04
Posts: 36

Re: TSQLPropInfo.IsValueVoid for value of 0.1 returns true

hmmm, I think you meant to write (temp='0') ?

Last edited by Milos (2022-07-19 16:04:34)

Offline

#4 2022-07-19 17:19:54

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

Re: TSQLPropInfo.IsValueVoid for value of 0.1 returns true

There was a subsequens commit.

:-)

Offline

#5 2022-07-20 11:45:51

Milos
Member
Registered: 2021-01-04
Posts: 36

Re: TSQLPropInfo.IsValueVoid for value of 0.1 returns true

Ah I didn't notice, thanks smile

Offline

Board footer

Powered by FluxBB