help with staement
Posted: Sun 17 Sep 2006 05:44
Hi all. I am using (copied out of the readmen)
MySQL Data Access Components 3.50
and delphi 6.
I have been trying to use a myquey componetnt but by adding the sql staement at run time and then using the builder option and the following code
select *
from faults
where pcontractor = 1
and I get an Unknown MySQL datatype (246) (D:\Projects\Delphi\MyDac\Source\MyClasses.pas, line 878).
But if I copy the same sql staement to a gui front end
DBACentral Manager for MySQL by MicroOLAP
it runs fine. Same database etc. no other changes.
Its driving me nuts. I am new to SQL etc so can anyone shead some light on the error pls
MySQL Data Access Components 3.50
and delphi 6.
I have been trying to use a myquey componetnt but by adding the sql staement at run time and then using the builder option and the following code
select *
from faults
where pcontractor = 1
and I get an Unknown MySQL datatype (246) (D:\Projects\Delphi\MyDac\Source\MyClasses.pas, line 878).
But if I copy the same sql staement to a gui front end
DBACentral Manager for MySQL by MicroOLAP
it runs fine. Same database etc. no other changes.
Its driving me nuts. I am new to SQL etc so can anyone shead some light on the error pls