mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 12:32:27 +01:00
- Fix MDEV-5340
modified: storage/connect/odbconn.cpp
This commit is contained in:
parent
f40b99626d
commit
ec906f928b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue