 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jeff Wilson Guest
|
Posted: Mon Apr 16, 2007 8:10 am Post subject: GetTableName not being called in Delphi 2007 |
|
|
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
|
Posted: Mon Apr 16, 2007 8:49 pm Post subject: Re: GetTableName not being called in Delphi 2007 |
|
|
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 |
|
 |
|
|
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
|
|