diff options
author | rowanbeentje <rowan@beent.je> | 2011-09-07 01:15:19 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-09-07 01:15:19 +0000 |
commit | 84324fa58adeecd895b4d52c98f34db5f8ddf3e3 (patch) | |
tree | 82bf9d8c2abf76b7ae33085fa25c8d1399ce76fc /Source/SPDatabaseDocument.m | |
parent | 0e096fe30fe8af5bee4b9e1f8e422862dc2dd189 (diff) | |
download | sequelpro-84324fa58adeecd895b4d52c98f34db5f8ddf3e3.tar.gz sequelpro-84324fa58adeecd895b4d52c98f34db5f8ddf3e3.tar.bz2 sequelpro-84324fa58adeecd895b4d52c98f34db5f8ddf3e3.zip |
Rework relation addition and name lookups following testing and research:
- Remove the background lookup of table constraint names for the current database. This prevented connection use while the query was running, and the query cannot be optimised and severely taxes servers with many databases. Revert to checking names against names in the current database
- Repurpose the activity spinner for adding relation query execution
- When an error is encountered adding a relation, re-open the sheet with the submitted values after displaying the error
- Add use of 'SHOW InnoDB STATUS' command and text extraction to show more explicit errors for the most common constraint errors
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index a6b905b2..4d8f2095 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -5977,8 +5977,6 @@ static NSString *SPCreateSyntx = @"SPCreateSyntax"; else { [[parentWindow onMainThread] makeFirstResponder:[tablesListInstance valueForKeyPath:@"tablesListView"]]; } - - [tableRelationsInstance loadUsedRelationNames]; #endif } |