Bug with DefaultValues and join

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
pedja2
Posts: 29
Joined: Thu 04 Jun 2009 11:11

Bug with DefaultValues and join

Post by pedja2 » Thu 04 Jun 2009 11:17

Hello,

Create tables:

CREATE TABLE `table1` (
`Code` tinyint(4) NOT NULL default '0',
`Description` char(50) default NULL,
PRIMARY KEY (`Code`)
) ;

INSERT INTO `table1` (`Code`, `Description`) VALUES
(1,'Desc 1');

CREATE TABLE `table2` (
`Code` tinyint(4) NOT NULL default '0',
`Description` char(50) default NULL,
PRIMARY KEY (`Code`)
);

INSERT INTO `table2` (`Code`, `Description`) VALUES
(1,'Desc 2');


Put as SQL in Myquery:
SELECT t2.Description FROM table1 t1
LEFT JOIN table2 AS t2 ON t1.Code=t2.Code

Opening MyQuery work.
Put MyQuery.Options.DefaultValues:=True
After opening you get error :
#4202S Table 'test.t2' doesn't exists.

Regards,
Pedja

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 05 Jun 2009 07:24

I can not reproduce the problem.
Please, try to download the latest MyDAC build (5.80.0.47) and check if this problem still exists.

pedja2
Posts: 29
Joined: Thu 04 Jun 2009 11:11

Post by pedja2 » Fri 05 Jun 2009 07:33

I already using the latest MyDac.
Try with Mysql server 4.1.22

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 05 Jun 2009 09:15

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

pedja2
Posts: 29
Joined: Thu 04 Jun 2009 11:11

Post by pedja2 » Thu 11 Jun 2009 09:02

Hi Dimon,

when you expect to have next build ready for download?

Regards
Pedja

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 12 Jun 2009 08:52

The MyDAC build will be released by the end of the next week.

Post Reply