[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

MySQL - Query with CachedUpdates - Delphi

Asked by Roadrunner in Delphi Programming, Delphi Database, MySQL Server

Hello!

I was forced to extend an existing program to support MySQL. Some of the data entry forms use TQuery with TUpdateSQL. This works all right as long as some values have been changed, but if nothing was changed and TQuery.ApplyUpdates is called I get an error "Updates failed" (original "Aktualisierung misslungen").

Any idea why this happens?
Is there some setting in the BDE or in MySQL that will fix this problem?

I could of course check, if there are any modifications and call Cancel instead of ApplyUpdates if there arn't any, but that just removes the symptom.

Thanks a lot, Guido

Delphi7, BDE 5.01, MySQL 5.1, MySQL ODBC  5.1
[+][-]11/11/09 07:27 PM, ID: 25801318Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/12/09 12:32 AM, ID: 25802411Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625