Hi,
I think ZeosLib might be returning fields with incorrect datatypes.
count(1) and cast(count(1) as integer) gives a text result?
more to the point, cast(((myfloatfield*myotherfloatfield)/100) as real) gives a text result!
For example
SELECT
Orders.ID AS OrderID,
Mixes.ID AS MixID,
Mixes.Percentage AS Percentage,
/* count(1),*/
/* cast(cout(1) as integer), */
/* 1 as one,*/
/* cast(1 as integer) AS one,*/
(Orders.Total/100)*Mixes.Percentage AS SubTotal
FROM
Orders, Mixes
But I can't get them to return as integer or real datatypes.
- V
calculated fields always string datatype
Moderators: gto, cipto_kh, EgonHugeist
-
- Fresh Boarder
- Posts: 1
- Joined: 04.01.2017, 12:27
- Location: Poland
- Contact:
calculated fields always string datatype
Thanks but I think is not working wile the table is open.
I even cant see that calculated fields refresh so easily....
I even cant see that calculated fields refresh so easily....