mirror of
https://github.com/dg/dibi.git
synced 2025-08-12 17:14:16 +02:00
DibiResult::convert() correctly handles too big INT [Closes #18]
This commit is contained in:
@@ -572,7 +572,7 @@ class DibiResult extends DibiObject implements IDataSource
|
|||||||
return $this->getDriver()->unescape($value, $type);
|
return $this->getDriver()->unescape($value, $type);
|
||||||
|
|
||||||
case dibi::INTEGER:
|
case dibi::INTEGER:
|
||||||
return (int) $value;
|
return is_float($tmp = $value * 1) ? $value : $tmp;
|
||||||
|
|
||||||
case dibi::FLOAT:
|
case dibi::FLOAT:
|
||||||
return (float) $value;
|
return (float) $value;
|
||||||
|
Reference in New Issue
Block a user