List Index Out Of Bounds (2) with myDAC 4.30.11.15 (during Design time) with Master Details Query and Persistent fields

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

List Index Out Of Bounds (2) with myDAC 4.30.11.15 (during Design time) with Master Details Query and Persistent fields

Post by swierzbicki » Wed 14 Jun 2006 15:34

Hi,

Here is a scenario to reproduce this bug :

Add a TmyQuery , name it master.
Fill the SQL property.
Add a Datasource and link it to the master query.
Left Click on the master Query , select field editor and retreive all fields (CTRL L)

Add a TmyQuery, name it Details
Fill the SQL property.
Add a Datasource and link it to the details query.
Left Click on the details Query , select field editor and retreive all fields (CTRL L)
Fill the MasterSource property
Fill the Master / Design key

That will works fine.

Now modify the SQL statement from the Details Query. Just add a new field. Validate the changes.
Left Click on the details Query , select field editor and retreive all fields (CTRL L) => You will get the List Out Of Bound (2)

The solution to "bypass" this is to clear the Master/Detail key and then add the new persistent field...

Can anybody else test this ?
Thanks...

B.R.

Stephane Wierzbicki

Ps : BDS 2006 + Update 2 + Hotfixes 1 to 6

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 15 Jun 2006 13:23


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

Post by swierzbicki » Thu 15 Jun 2006 14:53

Yes this looks so... thank you

Post Reply