aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableContent.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2012-08-06 01:06:27 +0000
committerrowanbeentje <rowan@beent.je>2012-08-06 01:06:27 +0000
commitbec9204f21160fe4c001df75050e5d0ec8e42a2f (patch)
treec9d5b570ed0fda96d320dd6ea4b2da850aa46f21 /Source/SPTableContent.m
parent6b79f6517a56c96c272cd4c2583f3431418385a9 (diff)
downloadsequelpro-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/SPTableContent.m')
-rw-r--r--Source/SPTableContent.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPTableContent.m b/Source/SPTableContent.m
index 43307746..efb7e771 100644
--- a/Source/SPTableContent.m
+++ b/Source/SPTableContent.m
@@ -605,6 +605,7 @@
// Set the line break mode and an NSFormatter subclass which truncates long strings for display
[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"]