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

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Guest

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

Post by Guest » Mon 03 Jan 2005 10:57

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:

Ikar
Posts: 1693
Joined: Thu 28 Oct 2004 13:56

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

Post by Ikar » Wed 05 Jan 2005 09:57

You create fields at design-time and then change type of "say" field at the server. Re-create this field in fields editor.

ramajana
Posts: 10
Joined: Tue 23 Nov 2004 17:22

Sometimes this will not help

Post by ramajana » Fri 07 Jan 2005 10:35

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)

Post Reply