diff options
author | rowanbeentje <rowan@beent.je> | 2012-08-06 01:06:27 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-08-06 01:06:27 +0000 |
commit | bec9204f21160fe4c001df75050e5d0ec8e42a2f (patch) | |
tree | c9d5b570ed0fda96d320dd6ea4b2da850aa46f21 /Source/SPCustomQuery.m | |
parent | 6b79f6517a56c96c272cd4c2583f3431418385a9 (diff) | |
download | sequelpro-bec9204f21160fe4c001df75050e5d0ec8e42a2f.tar.gz sequelpro-bec9204f21160fe4c001df75050e5d0ec8e42a2f.tar.bz2 sequelpro-bec9204f21160fe4c001df75050e5d0ec8e42a2f.zip |
- Add linebreak display in the database processes list, preventing display of truncated queries for clarity (Issue #1407)
- If SHOW FULL PROCESSLIST isn't on, and the query appears to be truncated (length == 100), add a trailing ellipsis to suggest more content
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r-- | Source/SPCustomQuery.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m index 5f8847b7..bc80d971 100644 --- a/Source/SPCustomQuery.m +++ b/Source/SPCustomQuery.m @@ -1579,11 +1579,11 @@ [theCol setEditable:YES]; SPTextAndLinkCell *dataCell = [[[SPTextAndLinkCell alloc] initTextCell:@""] autorelease]; [dataCell setEditable:YES]; - [dataCell setFormatter:[[SPDataCellFormatter new] autorelease]]; [dataCell setFont:tableFont]; [dataCell setLineBreakMode:NSLineBreakByTruncatingTail]; [dataCell setFormatter:[[SPDataCellFormatter new] autorelease]]; + [[dataCell formatter] setDisplayLimit:150]; // Set field length limit if field is a varchar to match varchar length if ([[columnDefinition objectForKey:@"typegrouping"] isEqualToString:@"string"] |