BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TBooleanField needs to process integer field

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
Todd Grigsby
Guest





PostPosted: Thu Aug 19, 2004 5:01 pm    Post subject: TBooleanField needs to process integer field Reply with quote



Several databases I've run across do not support boolean fields. Is there a way
to tell a TBoolean to use an integer field as though it were an integer field or
to tell a dataset to treat an integer as a Boolean?

CONFIGURATION:
MySQL 4.1.3b beta
MyODBC 3.51

I've built several tables with fields that are defined as boolean. In Delphi, I
have a dataset in which I've autopopulated the field list, and those fields are
of type TBooleanField. But when I open the dataset, the field types being
returned by the MyODBC driver are of type integer, so I get a datatype conflict.

MY QUESTION: Does anyone know of either 1) some way to tell TBooleanFields to
treat a smallint as a boolean, or 2) tell MyODBC to describe the field as a
boolean rather than as a smallint?

Thanks in advance,

Todd

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.