From 2c3a59464192a1f942c36fcc08d1b452eca3f059 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 9 Feb 2017 21:11:14 +0100 Subject: Fix display of column type in FieldEditorController for JSON type (part of #2199) --- Source/SPFieldEditorController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3