BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GetTableName not being called in Delphi 2007

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress)
View previous topic :: View next topic  
Author Message
Jeff Wilson
Guest





PostPosted: Mon Apr 16, 2007 8:10 am    Post subject: GetTableName not being called in Delphi 2007 Reply with quote



Moving from Delphi 7 to 2007, our applications are suddenly generating SQL errors when ApplyUpdates is being called on a ClientDataSet. We tracked this down to a problem in the GetTableName event on our Data Providers. Specifically, they're no longer getting called, which is causing the wrong tables to be assumed for updates.

Any idea what may have changed between 7 and 2007 that would affect calls to GetTableName?

Thanks in advance
Jeff
Back to top
Jeff W.
Guest





PostPosted: Mon Apr 16, 2007 8:49 pm    Post subject: Re: GetTableName not being called in Delphi 2007 Reply with quote



Solved the problem.

There was a change in the signature for this event, where the final String
parameter was changed to a WideString. I had gone through all references to
the event and changed the parameter in the code, but this action effectively
removed the event from reference in the DFM. Simply had to hook the event
code back up to the DataSetProviders.

"Jeff Wilson" <jeffw (AT) versalogic (DOT) com> wrote in message
news:46230284$1 (AT) newsgroups (DOT) borland.com...
Quote:

Moving from Delphi 7 to 2007, our applications are suddenly generating SQL
errors when ApplyUpdates is being called on a ClientDataSet. We tracked
this down to a problem in the GetTableName event on our Data Providers.
Specifically, they're no longer getting called, which is causing the wrong
tables to be assumed for updates.

Any idea what may have changed between 7 and 2007 that would affect calls
to GetTableName?

Thanks in advance
Jeff
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (dbExpress) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.