4.40.0.24 : #42000 Syntax error near 'Where Id = Null' at line 1

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

4.40.0.24 : #42000 Syntax error near 'Where Id = Null' at line 1

Post by swierzbicki » Thu 29 Mar 2007 13:44

Hi,

This is not a big deal (as there is a simple workarround), but it looks like the parser doesn't treat the ';' delemiter of the detail query.

Steps to reproduce :

Drop 1 Connection, 2 queries , 2 datasource.
Set connection on both queries
Set dataset on both datasources

Code: Select all

SQL For Master Query :
Select
0 as Id;

Code: Select all

SQL For Detail Query :
Select
1 as DetailId,
0 as Id;
Make a Master Detail relation ship between the 2 queries.
Open the Detail Query :

act : #42000 Syntax error near 'Where Id = Null' at line 1
Exp : this should works ;)

Workarround : remove the ';' from the detail query. It looks like the MyDAC parser doesn't take care of the last ';'

Jackson
Posts: 512
Joined: Thu 26 Jan 2006 10:06

Post by Jackson » Fri 30 Mar 2007 10:51

Thank you for information.
We have reproduced the problem and fixed it.
This fix will be included in the next MYDAC build.

Post Reply