- Fix MDEV-5340

modified:
  storage/connect/odbconn.cpp
This commit is contained in:
Olivier Bertrand 2013-12-20 12:24:24 +01:00
parent f40b99626d
commit ec906f928b

View file

@ -125,7 +125,7 @@ int TranslateSQLType(int stp, int prec, int& len, char& v)
break;
case SQL_NUMERIC: // 2
case SQL_DECIMAL: // 3
type = (prec) ? TYPE_FLOAT
type = (prec || len > 20) ? TYPE_FLOAT
: (len > 10) ? TYPE_BIGINT : TYPE_INT;
break;
case SQL_INTEGER: // 4