mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
Fixed handling of NUMERIC type, when it contains numbers that could
potentially exceed the interger limit.
This commit is contained in:
parent
7fa0970567
commit
48f2ad4703
@ -1168,7 +1168,7 @@ static sybase_result * php_sybase_fetch_result_set (sybase_link *sybase_ptr, int
|
||||
case CS_DECIMAL_TYPE:
|
||||
result->datafmt[i].maxlength = result->datafmt[i].precision + 3;
|
||||
/* numeric(10) vs numeric(10, 1) */
|
||||
result->numerics[i] = (result->datafmt[i].scale == 0) ? 1 : 2;
|
||||
result->numerics[i] = (result->datafmt[i].scale == 0 && result->datafmt[i].precision <= 10) ? 1 : 2;
|
||||
break;
|
||||
default:
|
||||
result->datafmt[i].maxlength++;
|
||||
|
Loading…
Reference in New Issue
Block a user