aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPFieldEditorController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPFieldEditorController.m')
-rw-r--r--Source/SPFieldEditorController.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/SPFieldEditorController.m b/Source/SPFieldEditorController.m
index 8c5c72ae..a32f32dc 100644
--- a/Source/SPFieldEditorController.m
+++ b/Source/SPFieldEditorController.m
@@ -249,7 +249,8 @@ typedef enum {
if ([fieldType length])
[label appendString:fieldType];
- if (maxTextLength > 0)
+ //skip length for JSON type since it's a constant and MySQL doesn't display it either
+ if (maxTextLength > 0 && ![[fieldType uppercaseString] isEqualToString:SPMySQLJsonType])
[label appendFormat:@"(%lld) ", maxTextLength];
if (!_allowNULL)