aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableData.m
diff options
context:
space:
mode:
authormtvee <emptyvee@gmail.com>2009-05-15 06:40:08 +0000
committermtvee <emptyvee@gmail.com>2009-05-15 06:40:08 +0000
commite2932a9e12db6764d1539e4fd3bd100d59f0a76a (patch)
treee2482deae8d7baa0545b4ce63cc3622f4ce043fc /Source/SPTableData.m
parentfa7f9811fbbbbee702acb1a5592f69fa7592f5c7 (diff)
downloadsequelpro-e2932a9e12db6764d1539e4fd3bd100d59f0a76a.tar.gz
sequelpro-e2932a9e12db6764d1539e4fd3bd100d59f0a76a.tar.bz2
sequelpro-e2932a9e12db6764d1539e4fd3bd100d59f0a76a.zip
fixed bug with SPTableData not clearing cache properly
Diffstat (limited to 'Source/SPTableData.m')
-rw-r--r--Source/SPTableData.m20
1 files changed, 11 insertions, 9 deletions
diff --git a/Source/SPTableData.m b/Source/SPTableData.m
index 6b40eb99..2192d5f9 100644
--- a/Source/SPTableData.m
+++ b/Source/SPTableData.m
@@ -266,6 +266,8 @@
NSString *encodingString;
unsigned i, stringStart;
+ [columns removeAllObjects];
+ [columnNames removeAllObjects];
[constraints removeAllObjects];
// Catch unselected tables and return nil
@@ -356,12 +358,12 @@
if( [[parts objectAtIndex:0] hasPrefix:@"CONSTRAINT"] ) {
NSMutableDictionary *constraintDetails = [[NSMutableDictionary alloc] init];
/*
- NSLog( @"constraint %@ on %@ ref %@.%@",
- [[parts objectAtIndex:1] stringByTrimmingCharactersInSet:junk],
- [[parts objectAtIndex:4] stringByTrimmingCharactersInSet:junk],
- [[parts objectAtIndex:6] stringByTrimmingCharactersInSet:junk],
- [[parts objectAtIndex:7] stringByTrimmingCharactersInSet:junk] );
- */
+ NSLog( @"constraint %@ on %@ ref %@.%@",
+ [[parts objectAtIndex:1] stringByTrimmingCharactersInSet:junk],
+ [[parts objectAtIndex:4] stringByTrimmingCharactersInSet:junk],
+ [[parts objectAtIndex:6] stringByTrimmingCharactersInSet:junk],
+ [[parts objectAtIndex:7] stringByTrimmingCharactersInSet:junk] );
+ */
[constraintDetails setObject:[[parts objectAtIndex:1] stringByTrimmingCharactersInSet:junk]
forKey:@"name"];
[constraintDetails setObject:[[parts objectAtIndex:4] stringByRemovingCharactersInSet:junk]
@@ -446,9 +448,9 @@
// key
else if( [[parts objectAtIndex:0] hasPrefix:@"KEY"] ) {
/*
- NSLog( @"key %@.%@",
- [[parts objectAtIndex:1] stringByTrimmingCharactersInSet:junk],
- [[parts objectAtIndex:2] stringByTrimmingCharactersInSet:junk] );
+ NSLog( @"key %@.%@",
+ [[parts objectAtIndex:1] stringByTrimmingCharactersInSet:junk],
+ [[parts objectAtIndex:2] stringByTrimmingCharactersInSet:junk] );
*/
}
// who knows