aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-02-19 03:38:50 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-02-23 11:15:00 +0900
commit5d78256ee31edddf9e5deb9a50f2633482279bc3 (patch)
tree80e51a75de8f179c2b397abc79ae281130d4d2a5 /activemodel
parent6d63b5e49a399fe246afcebad45c3c962de268fa (diff)
downloadrails-5d78256ee31edddf9e5deb9a50f2633482279bc3.tar.gz
rails-5d78256ee31edddf9e5deb9a50f2633482279bc3.tar.bz2
rails-5d78256ee31edddf9e5deb9a50f2633482279bc3.zip
PostgreSQL: Treat infinite values in date like datetime consistently
The values infinity and -infinity are supported by both date and timestamp types. https://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-DATETIME-SPECIAL-TABLE And also, it can not be known whether a value is infinity correctly unless cast a value. I've added `QueryAttribute#infinity?` to handle that case. Closes #27585.
Diffstat (limited to 'activemodel')
0 files changed, 0 insertions, 0 deletions