MySQL Forums
Forum List  »  Newbie

Relationship or not
Posted by: Wallace Weideman
Date: June 08, 2015 08:35PM

This is more on guidance rather than a solution. I have been using MySql with many tables with no SQL Linking in Delphi. Most data was referenced from data in several tables. Over time, some of my data has been scrambled and I have a few records in child databases with no parents.

I downloaded Workbench and started looking at linking the tables with parent
child relationships to try and fix this. Once I started running my app, I got
crashes all over the place. Message - Not in edit mode.

In the past, I had grids on the main page and all editing was done on child
forms. On going into the form, I set edit on and on exiting, posted the data.
All worked.

Now with relationships on as defined in the database diagram, the app is
crashing. Without too much investigation at this point, it looks like
background updates are happening at times when tables are not in edit mode. It
gives me an error on just returning to the parent form and not on a specific database access line. Short of always having the tables in edit mode, I have 2 options, leave off all external SQL table relationships and do more coding in Delphi to check for data integrity or use relationships and find a better way of making it all work.

What are your thoughts ??

Options: ReplyQuote


Subject
Written By
Posted
Relationship or not
June 08, 2015 08:35PM
June 09, 2015 10:58AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.