summaryrefslogtreecommitdiff
path: root/storage/connect/ha_connect.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/connect/ha_connect.cc')
-rw-r--r--storage/connect/ha_connect.cc9
1 files changed, 2 insertions, 7 deletions
diff --git a/storage/connect/ha_connect.cc b/storage/connect/ha_connect.cc
index 8526d985af0..81960332cbe 100644
--- a/storage/connect/ha_connect.cc
+++ b/storage/connect/ha_connect.cc
@@ -1618,14 +1618,9 @@ void *ha_connect::GetColumnOption(PGLOBAL g, void *field, PCOLINFO pcf)
pcf->Scale= 0;
pcf->Opt= (fop) ? (int)fop->opt : 0;
- if (fp->field_length >= 0) {
+ if (fp->field_length >= 0)
pcf->Length= fp->field_length;
-
- // length is bytes for Connect, not characters
- if (!strnicmp(chset, "utf8", 4))
- pcf->Length /= 3;
-
- } else
+ else
pcf->Length= 256; // BLOB?
pcf->Precision= pcf->Length;