Can not filter with MySQL function

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
charin
Posts: 4
Joined: Thu 10 Nov 2011 17:20

Can not filter with MySQL function

Post by charin » Thu 10 Nov 2011 17:26

I try to filter the table with following statement

Filter := 'DATE_FORMAT(DATETIME_IN, '%Y%m') BETWEEN 201111 AND 201211 ';

MyDac said: column "DATE_FORMAT" not found"

How can i solve this issue?

Thanks.

charin
Posts: 4
Joined: Thu 10 Nov 2011 17:20

Post by charin » Thu 10 Nov 2011 20:53

Okay, We 'll use FilterSql instead of Filter.

:wink:

AndreyZ

Post by AndreyZ » Fri 11 Nov 2011 08:43

This solution is correct.

Post Reply