aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/column.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Provide a call stack for deprecation warnings where needed.Nikita Afanasenko2012-10-291-2/+3
| | | | It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
* The default value of a text/blob in mysql strict mode should be nilJon Leighton2012-10-191-4/+0
| | | | | | | | | In non-strict mode it is '', but if someone is in strict mode then we should honour the strict semantics. Also, this removes the need for a completely horrible hack in dirty.rb. Closes #7780
* Support for partial inserts.Jon Leighton2012-09-281-0/+4
| | | | | | | | | | | When inserting new records, only the fields which have been changed from the defaults will actually be included in the INSERT statement. The other fields will be populated by the database. This is more efficient, and also means that it will be safe to remove database columns without getting subsequent errors in running app processes (so long as the code in those processes doesn't contain any references to the removed column).
* update ConnectionAdaptar::Column#type_cast_code to be compatible with 3.2 branchThiago Pradi2012-09-131-1/+1
|
* ActiveRecord support to PostgreSQL 9.2 JSON typeDickson S. Guedes2012-09-051-0/+1
| | | | | | | | | This implements the support to encode/decode JSON data to/from database and creating columns of type JSON using a native type [1] supported by PostgreSQL from version 9.2. [1] http://www.postgresql.org/docs/9.2/static/datatype-json.html
* Fix for time type columns with invalid timeAdam Meehan2012-09-051-1/+7
| | | | | | The string_to_dummy_time method was blindly parsing the dummy time string with Date._parse which returns a hash for the date part regardless of whether the time part is an invalid time string.
* Fix occasional microsecond conversion inaccuracyAri Pollak2012-08-151-2/+2
| | | | | | | | | ActiveRecord::ConnectionAdapters::Column#microseconds did an unnecessary conversion to from Rational to float when calculating the integer number of microseconds. Some terminating decimal numbers in base10 are repeating decimal numbers in base2 (the format of float), and occasionally this causes a rounding error. Patch & explanation originally from Logan Bowers.
* load active_support/deprecation in active_support/railsXavier Noria2012-08-021-1/+0
|
* Merge pull request #6192 from ↵Aaron Patterson2012-05-161-0/+1
|\ | | | | | | | | danmcclain/add_inet_and_cidr_types_to_postgresql_adapter Add support for macaddr, inet, and cidr types to PostgreSQL adapter
| * Converts inet and cidr columns to NetAddr::CIDRDan Seaver2012-05-071-0/+1
| |
* | Prevent creating valid time-like objects from blank string from dbEgor Lynko2012-05-051-3/+3
|/ | | | Issue #6045
* Don't type cast values that don't respond to to_i to 1James Sanders & Jason Noble2012-04-301-1/+1
|
* Deprecate Column#type_cast_codeCarlos Antonio da Silva2012-03-291-0/+4
|
* PG column consults oid types when typecastingAaron Patterson2012-02-101-1/+4
|
* string_to_hstore / hstore_to_string, serializingJoel2012-02-081-2/+2
|
* delegate attribute typecasting to the columnAaron Patterson2012-02-061-0/+15
|
* on and ON are type casted to a true boolean columnSantiago Pastorino2012-01-111-2/+2
|
* PostgreSQL hstore types are automatically deserialized from the database.Aaron Patterson2011-12-201-0/+2
|
* handle not only strings in date type castSergey Nartimov2011-12-191-7/+11
|
* Add missing require 'set'Daniel Azuma2011-06-201-0/+2
|
* Year 0 should fall to nil only if month and day are also 0Kirill Radzikhovskyy2011-05-171-1/+1
|
* refactor a bunch of return / if to a case / whenAaron Patterson2011-02-031-22/+22
|
* moving AR::ConnectionAdapters::Column to its own fileAaron Patterson2011-02-011-0/+268