aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDataCellFormatter.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-10-16 12:30:38 +0000
committerBibiko <bibiko@eva.mpg.de>2009-10-16 12:30:38 +0000
commit507d0089c6bb73a01129f1e356d1e88ca53afb55 (patch)
tree9b892fb51823de5e7381d70e2330392a418e0f06 /Source/SPDataCellFormatter.m
parenta57daba74182b3123c47b44996680efd399a471d (diff)
downloadsequelpro-507d0089c6bb73a01129f1e356d1e88ca53afb55.tar.gz
sequelpro-507d0089c6bb73a01129f1e356d1e88ca53afb55.tar.bz2
sequelpro-507d0089c6bb73a01129f1e356d1e88ca53afb55.zip
• fixed three further typos for: objectForKey:@"NullValue"
• allow to enter the NULL value string even if the cell/field's maximal length is set to less then the actual NULL value string length (eg varchar(3) and NULL value string is @"NULL")
Diffstat (limited to 'Source/SPDataCellFormatter.m')
-rw-r--r--Source/SPDataCellFormatter.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/SPDataCellFormatter.m b/Source/SPDataCellFormatter.m
index 5a768686..916568ca 100644
--- a/Source/SPDataCellFormatter.m
+++ b/Source/SPDataCellFormatter.m
@@ -76,8 +76,8 @@
- (BOOL)isPartialStringValid:(NSString *)partialString newEditingString:(NSString **)newString errorDescription:(NSString **)error
{
- // No limit set
- if (textLimit == 0)
+ // No limit set or partialString is NULL value string allow editing
+ if (textLimit == 0 || [partialString isEqualToString:[[NSUserDefaults standardUserDefaults] objectForKey:@"NullValue"]])
return YES;
// A single character over the length of the string - likely typed. Prevent the change.