Commit ec906f92 authored by Olivier Bertrand's avatar Olivier Bertrand

- Fix MDEV-5340

modified:
  storage/connect/odbconn.cpp
parent f40b9962
...@@ -125,7 +125,7 @@ int TranslateSQLType(int stp, int prec, int& len, char& v) ...@@ -125,7 +125,7 @@ int TranslateSQLType(int stp, int prec, int& len, char& v)
break; break;
case SQL_NUMERIC: // 2 case SQL_NUMERIC: // 2
case SQL_DECIMAL: // 3 case SQL_DECIMAL: // 3
type = (prec) ? TYPE_FLOAT type = (prec || len > 20) ? TYPE_FLOAT
: (len > 10) ? TYPE_BIGINT : TYPE_INT; : (len > 10) ? TYPE_BIGINT : TYPE_INT;
break; break;
case SQL_INTEGER: // 4 case SQL_INTEGER: // 4
......
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