Page 1 of 1

Myquery1:Type Mismatch for field 'say',expecting:integer Actual:Largeint

Posted: Mon 03 Jan 2005 10:57
by Guest
hi

I am use mydac 2.00 3.6 with delphi 6.

my query :

SELECT *,count(price) AS mycount FROM rezervation group by stockcode

but to meet error Myquery1:

Type Mismatch for field 'say',expecting:integer Actual:Largeint

this error from where to weld

please help :roll:

Re: Myquery1:Type Mismatch for field 'say',expecting:integer Actual:Largeint

Posted: Wed 05 Jan 2005 09:57
by Ikar
You create fields at design-time and then change type of "say" field at the server. Re-create this field in fields editor.

Sometimes this will not help

Posted: Fri 07 Jan 2005 10:35
by ramajana
If you use result of calculation, MySQL changes field size depending on calculation result. You should in cases like that wrap field calculation in SQL with CONVERT or CAST call.

Example:

convert(trim(concat(contacts.first_name,' ',contacts.last_name)),char)