vapor-community / postgresql

Robust PostgreSQL interface for Swift
MIT License
131 stars 33 forks source link

Fix numeric with leading zero fractional #76

Closed dmonagle closed 6 years ago

dmonagle commented 6 years ago

Numeric numbers with a fractional part with a leading zero (eg: 10.08) will be decoded from the database without the leading zero (ie: 10.80).

This is a serious issue which results in corrupted numeric values.

This solves issue #75

vzsg commented 6 years ago

Thank you for catching and promptly fixing it! This indeed is a serious issue. I'll tag a new point release right away.