Error in new version

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Jelly
Posts: 18
Joined: Sat 09 Jul 2005 13:49
Contact:

Error in new version

Post by Jelly » Wed 28 Jun 2006 20:07

Since I've installed the latest version of MyDAC (I had to, because of the incompatibilty with the IBDAC componens), I get an error when doing a MyQuery.Refresh...
Image

The SQL Refresh statement looks like this:

Code: Select all

SELECT rm_versions.Project, rm_versions.Major, rm_versions.Minor, rm_versions.Release, rm_versions.Build, rm_versions.ReleaseDate, rm_versions.Downloadable, rm_versions.Setupname, rm_versions.StartDate, rm_versions.STATUS, rm_versions.SetupSize FROM rm_versions
WHERE rm_versions.ID = :Old_ID 
The Status column is mispelled in UPPERCASE. But even if I change it to the correct case (Status), I get exactly the same error....

In older MyDAC versions, this error didn't occur, since I haven't changed anything with this component on my form, nor anywhere else in my code. The MySQL Server also ist exactly the same version.

Any suggestions ?[/img]

Zagawa
Posts: 21
Joined: Fri 12 May 2006 09:56

Post by Zagawa » Thu 29 Jun 2006 07:12

I have this kind of error sometimes too.

The way for me to fix it >

The FieldName properties of the fields in your query Component must be in the same case in your database.

If in a table in your database you have a field like : 'StAtUs'
Then the fieldname in Query component must be : 'StAtUs'
Last edited by Zagawa on Thu 29 Jun 2006 10:23, edited 1 time in total.

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

Post by Antaeus » Thu 29 Jun 2006 09:24

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

Jelly
Posts: 18
Joined: Sat 09 Jul 2005 13:49
Contact:

Post by Jelly » Thu 29 Jun 2006 22:44

Antaeus wrote:Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
This is great, and shows that the occuring problem doesn't lie on my shoulders :lol: So thanks for the fix...

Post Reply