aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2017-02-09 21:11:14 +0100
committerMax <post@wickenrode.com>2017-02-09 21:11:14 +0100
commit2c3a59464192a1f942c36fcc08d1b452eca3f059 (patch)
treee82f5cb271bf477d138dae2fb0a98b5b0f969202
parent325b447afff5bb1ae4fa898f495a0f78d268e866 (diff)
downloadsequelpro-2c3a59464192a1f942c36fcc08d1b452eca3f059.tar.gz
sequelpro-2c3a59464192a1f942c36fcc08d1b452eca3f059.tar.bz2
sequelpro-2c3a59464192a1f942c36fcc08d1b452eca3f059.zip
Fix display of column type in FieldEditorController for JSON type (part of #2199)
-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)