TbooleanFields problem
Posted: Mon 06 Nov 2006 14:48
We work with Delphi 5 Update Pack 1, and Mydac 4.40.19
Here is the way to reproduce the problem
Creation table script :
Data :
Now in Delphi put a MyConnection & MyQuery and link them.
First try this query :
Go to Fields Editors and add all fields : The field 'bool' is TBooleanField
> All is ok
Now delete created fields and try this query :
Finally, go to Fields Editors and add all fields : The field 'bool' is now a TSmallIntField..
Could you please check this ?
Here is the way to reproduce the problem
Creation table script :
Code: Select all
CREATE TABLE `table1` (
`ID` int(11) NOT NULL auto_increment,
`Bool` tinyint(1) NOT NULL,
`Fields` char(8) default NULL,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;Code: Select all
INSERT INTO `table1` (`ID`, `Bool`, `Fields`) VALUES
(1,1,'AAAA'),
(2,0,'BBBB'),
(3,1,'CCCC');First try this query :
Code: Select all
select bool,fields from table1> All is ok
Now delete created fields and try this query :
Code: Select all
select bool,fields from table1 where Fields='AAAA'
union
select bool,fields from table1 where Fields='BBBB'Could you please check this ?