diff options
author | rowanbeentje <rowan@beent.je> | 2011-09-21 00:38:56 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2011-09-21 00:38:56 +0000 |
commit | 549d28e50a35d432531926a6916755dbe26d91c4 (patch) | |
tree | cf5ef7d9440fedb7226ea60e7f2b22d5907d428e /Source/SPTableStructureDelegate.m | |
parent | 6278cbbf9d76d69f44d1d7ddf34792b9e0310272 (diff) | |
download | sequelpro-549d28e50a35d432531926a6916755dbe26d91c4.tar.gz sequelpro-549d28e50a35d432531926a6916755dbe26d91c4.tar.bz2 sequelpro-549d28e50a35d432531926a6916755dbe26d91c4.zip |
Rework linebreak handling in content and custom query result views, as triggered by Issue #1184:
- Display table cells on a single line for preview purposes
- Display gray pilcrow/reverse pilcrow placeholders instead of linebreaks
- If a cell contains linebreaks, automatically trigger sheet editing mode
- Handle newly displayed linebreaks in column width detection
- If using the up/down arrow keys in a field editor, allow them to select the previous/next line within an editor if appropriat (instead of always moving to the previous/next row)
Diffstat (limited to 'Source/SPTableStructureDelegate.m')
-rw-r--r-- | Source/SPTableStructureDelegate.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/SPTableStructureDelegate.m b/Source/SPTableStructureDelegate.m index 13a18530..1daac497 100644 --- a/Source/SPTableStructureDelegate.m +++ b/Source/SPTableStructureDelegate.m @@ -327,7 +327,7 @@ else if (isTimestampType && ([[[originalRow objectForKey:@"default"] uppercaseString] isEqualToString:@"CURRENT_TIMESTAMP"]) ) { [queryString appendString:@" DEFAULT CURRENT_TIMESTAMP"]; } - else if ([[originalRow objectForKey:@"default"] length]) { + else if ([(NSString *)[originalRow objectForKey:@"default"] length]) { [queryString appendFormat:@" DEFAULT '%@'", [mySQLConnection prepareString:[originalRow objectForKey:@"default"]]]; } } |