aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-17 13:13:45 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-17 13:13:45 +0000
commit60dda45aa41e11946a0e5f8aea3e8352f446ca24 (patch)
treefbd150c061993f5193c0a9ca778b200639879ea4 /Source
parent183ac8ed6f065c99de2911df97f4285ed21bbcca (diff)
downloadsequelpro-60dda45aa41e11946a0e5f8aea3e8352f446ca24.tar.gz
sequelpro-60dda45aa41e11946a0e5f8aea3e8352f446ca24.tar.bz2
sequelpro-60dda45aa41e11946a0e5f8aea3e8352f446ca24.zip
• changed NSDictionary structure for [MCPConnection queryDbStructure]
- added key, extra, privileges information to it - changed object type for 'field_name' to an array containing the values type, charset, key, extra, priv - completion for fields now also shows PRI, MUL, etc. keys
Diffstat (limited to 'Source')
-rw-r--r--Source/CMTextView.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/CMTextView.m b/Source/CMTextView.m
index 17720a03..1f44687b 100644
--- a/Source/CMTextView.m
+++ b/Source/CMTextView.m
@@ -410,7 +410,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
NSArray *sortedFields = [allFields sortedArrayUsingDescriptors:[NSArray arrayWithObject:desc]];
for(id field in sortedFields) {
if(![field hasPrefix:@" "]) {
- NSString *typ = [theTable objectForKey:field];
+ NSArray *def = [theTable objectForKey:field];
+ NSString *typ = [NSString stringWithFormat:@"%@ %@ %@", [def objectAtIndex:0], [def objectAtIndex:1], [def objectAtIndex:2]];
// Check if type definition contains a , if so replace the bracket content by … and add
// the bracket content as "list" key to prevend the token field to split them by ,
if(typ && [typ rangeOfString:@","].length) {
@@ -1182,7 +1183,8 @@ NSInteger alphabeticSort(id string1, id string2, void *reverse)
[desc release];
for(id field in sortedFields) {
if(![field hasPrefix:@" "]) {
- NSString *typ = [theTable objectForKey:field];
+ NSArray *def = [theTable objectForKey:field];
+ NSString *typ = [NSString stringWithFormat:@"%@ %@ %@", [def objectAtIndex:0], [def objectAtIndex:1], [def objectAtIndex:2]];
// Check if type definition contains a , if so replace the bracket content by … and add
// the bracket content as "list" key to prevend the token field to split them by ,
if(typ && [typ rangeOfString:@","].length) {