Re: ODS 6.00 vs IDS 7.30 - COUNT(*) incompatible?
Posted in 1998
Ivan Lyakhovenko wrote: > > Hi Zandy! > > I just adding TFields to TQuery component in design-time. > In this case Delphi evaluates Field type in design-time and save this > info into .dfm file. > This approach is different to creating dynamic query. > > But I've found the problem! > > The reason is that due to the large table support Informix has changed > the output type > of the COUNT(*) value from long to double. While this is essentially correct, actually the type of COUNT(*) in Informix versions 7.10+ was changed to DECIMAL. Since Delphi does not directly support Informix's DECIMAL type it asks the engine to translate it to float. As you note you should be able to get Delphi to specify a translation to long integer. Art S. Kagel