Browse Source

- 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
pull/3/head
Olivier Bertrand 13 years ago
parent
commit
b7f435f2ff
  1. 2
      storage/connect/ha_connect.cc

2
storage/connect/ha_connect.cc

@ -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

Loading…
Cancel
Save