Commit Graph

2 Commits

Author SHA1 Message Date
6ef340fb32 util/types: properly handle truncate error for string to float or int. (#2186)
When converting from string to float or int, use StatementContext to handle truncate error.
Also directly convert a string to Int instead converting to float first, then convert float to int.
2016-12-07 19:42:46 +08:00
e288b3563f types/util: use statement context to handle truncate error. (#2147)
use statement context to handle truncate error in ConvertTo MyDecimal.
2016-12-01 19:11:07 +08:00