Datatype of Column with TZQuery

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
mtm
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 09.04.2010, 15:24

Datatype of Column with TZQuery

Post by mtm »

Hy folks,

im a newbie on ZEOS and I have a question. Is there any possibility to get the DataType of the Columns in a Recordset I get from a TZQuery. I know that I can get it form a TSQLMetadata but I want to know, if I can get it from a TZQuery.

thank you
mtm
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

mtm,
Do you want to know the datatype of the database column or do you want to know the type of the TField in the TDataset?
- Getting the database column type isn't possible, as far as I know. Unless TZQuery.FieldDefs(i).DataType works that way, but that would be a zeoslib feature I didn't know. Please test, so we know for sure.
- TField.DataType tells you how the field is interpreted by the dataset.

Mark
Image
Post Reply