Commit b7f435f2 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix bug causing connect_assisted_discovery to fail

  on some table types (WMI). In add_field a decimal value
  could be specified for columns not being DOUBLE.

modified:
  storage/connect/ha_connect.cc
parent 0eaa7c2f
......@@ -3382,7 +3382,7 @@ static bool add_field(String *sql, const char *field_name, const char *type,
error|= sql->append('(');
error|= sql->append_ulonglong(len);
if (dec || !strcmp(type, "DOUBLE")) {
if (/*dec || */!strcmp(type, "DOUBLE")) {
error|= sql->append(',');
error|= sql->append_ulonglong(dec);
} // endif dec
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment