diff options
author | Sean Griffin <sean@thoughtbot.com> | 2015-06-05 09:02:25 -0600 |
---|---|---|
committer | Sean Griffin <sean@thoughtbot.com> | 2015-06-05 09:06:45 -0600 |
commit | 9f4a3fd7383d1fa5e96030c411a998b89f510476 (patch) | |
tree | a5a32ef48e8ed780b0a57c59871edd47c25c14f4 /activerecord/CHANGELOG.md | |
parent | 367395550627328fadf1e8143f65c4266984df2c (diff) | |
download | rails-9f4a3fd7383d1fa5e96030c411a998b89f510476.tar.gz rails-9f4a3fd7383d1fa5e96030c411a998b89f510476.tar.bz2 rails-9f4a3fd7383d1fa5e96030c411a998b89f510476.zip |
Return a `Point` object from the PG Point type
This introduces a deprecation cycle to change the behavior of the
default point type in the PostgreSQL adapter. The old behavior will
continue to be available for the immediate future as `:legacy_point`.
The current behavior of returning an `Array` causes several problems,
the most significant of which is that we cannot differentiate between an
array of points, and a point itself in the case of a column with the
`point[]` type.
The attributes API gives us a reasonable way to have a proper
deprecation cycle for this change, so let's take advantage of it. If we
like this change, we can also add proper support for the other geometric
types (line, lseg, box, path, polygon, and circle), all of which are
just aliases for string today.
Fixes #20441
Diffstat (limited to 'activerecord/CHANGELOG.md')
-rw-r--r-- | activerecord/CHANGELOG.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index f6a0777faf..02b2096ef6 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,8 @@ +* Deprecate the PG `:point` type in favor of a new one which will return + `Point` objects instead of an `Array` + + *Sean Griffin* + * Ensure symbols passed to `ActiveRecord::Relation#select` are always treated as columns. |