1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activerecord/test/cases/adapters
Sean Griffin 9f4a3fd738 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
2015-06-05 09:06:45 -06:00
..
mysql If specify strict: :default explicitly, do not set sql_mode. 2015-05-26 17:44:24 -07:00
mysql2 If specify strict: :default explicitly, do not set sql_mode. 2015-05-26 17:44:24 -07:00
postgresql Return a Point object from the PG Point type 2015-06-05 09:06:45 -06:00
sqlite3 Add collation support for string and text columns in SQLite3 2015-05-28 08:40:40 +05:30