Problem With new version 5.50.34 and 5.50.35

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
almosqueda
Posts: 2
Joined: Tue 17 Jun 2008 02:09

Problem With new version 5.50.34 and 5.50.35

Post by almosqueda » Tue 17 Jun 2008 02:23

I test with both version and I have the same problem:
"invalida Variant Type Conversion"

This happend to execute the follow code:

dmN.tNicOcupa.SQL.Clear;
dmN.tNicOcupa.SQL.Text := 'Select Distinct Contrato From NicOcupa Order By Contrato';
dmN.tNicOcupa.Open;

Delphi 5
Windows Vista Bussines (new)
MyDac 5.50.34 and 5.50.35 (new)

Until I was worked with the follow enviroment all was fine
Delphi 5
Windows XP
MyDac 5.20

You Can help my, Thanks

swierzbicki
Posts: 451
Joined: Wed 19 Jan 2005 09:59

Post by swierzbicki » Tue 17 Jun 2008 05:42

Hi Almosqueda,

You should provide to Corelab support more informations :
- MySQL server version
- The 'NicOcupa' table structure + datas
- A simple Delphi project reproducing the issue

B.R.

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

Post by Dimon » Tue 17 Jun 2008 07:18

Please send us a script to create and fill the 'NicOcupa' table.

almosqueda
Posts: 2
Joined: Tue 17 Jun 2008 02:09

Solution Ready!!!!

Post by almosqueda » Wed 18 Jun 2008 01:37

Original Code that was worked for years until new version:

//Table slave from tOcupa
// Text of Query: Select * from Ocupa
tOcupaTmp.Open;
dmP.tOcupa.SQL.Clear;
dmP.tOcupa.SQL.Text := 'Select Distinct Contrato From Ocupa Order By Contrato';
dmP.tOcupa.Open; //Table master from tOcupaTmp

The solution was change order to open tables:

dmP.tOcupa.SQL.Clear;
dmP.tOcupa.SQL.Text := 'Select Distinct Contrato From Ocupa Order By Contrato';
dmP.tOcupa.Open; //Table master from tOcupaTmp

//Table slave from tOcupa
// Text of Query: Select * from Ocupa
tOcupaTmp.Open;

Thanks for all

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

Post by Dimon » Wed 18 Jun 2008 07:57

It is good to see that this problem has been solved.

Post Reply