Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix only-once stub logic. | Steve Jorgensen | 2012-08-08 | 1 | -1/+1 |
| | | | | | Didn't fail the test because adapter#query happens to not call raw connection's #query, but don't want to count on that and have a fragile test. | ||||
* | Fix just-plain-wrongness of psql auto-reconnect test. | Steve Jorgensen | 2012-08-07 | 1 | -8/+9 |
| | | | | | | Full test requiring manual intervention was fine, but w/ simulated disconnect, assertion was backward & still passing. Was several kinds of wrong. | ||||
* | Deprecate ActiveRecord::Base.scoped. | Jon Leighton | 2012-07-27 | 2 | -2/+2 |
| | | | | | | | It doesn't serve much purpose now that ActiveRecord::Base.all returns a Relation. The code is moved to active_record_deprecated_finders. | ||||
* | ActiveRecord::Base.all returns a Relation. | Jon Leighton | 2012-07-27 | 2 | -2/+2 |
| | | | | | | | | | | | Previously it returned an Array. If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This is more explicit. In most cases this should not break existing code, since Relations use method_missing to delegate unknown methods to #to_a anyway. | ||||
* | Stop being silly with formatting of method aliasing. | Steve Jorgensen | 2012-07-16 | 1 | -3/+3 |
| | |||||
* | Simulated & actual (manual/skipped) PostgreSQL auto-reconnection tests. | Steve Jorgensen | 2012-07-16 | 1 | -0/+72 |
| | |||||
* | fixing tests to deal with data differences between prepared statements and ↵ | Aaron Patterson | 2012-07-13 | 2 | -2/+7 |
| | | | | | | | non-prepared statements Conflicts: activerecord/test/cases/query_cache_test.rb | ||||
* | Unify the collation API for the database adpters | Rafael Mendonça França | 2012-07-01 | 2 | -4/+4 |
| | |||||
* | Support collate and ctype on the PostgreSQL. | kennyj | 2012-06-29 | 2 | -0/+12 |
| | |||||
* | fix: limit of enum columns of mysql | Yamada Masaki | 2012-06-28 | 2 | -0/+20 |
| | |||||
* | Revert "Merge pull request #6344" | Piotr Sarnacki | 2012-06-25 | 1 | -6/+1 |
| | | | | | | | | | | | | | | This commit needs to be reverted because it introduces difficulties when using sqlite3 in development and other databases in production. This happens because when you create time column in sqlite3, it's dumped as datetime in schema.rb file. This reverts commit 57d534ee9e441d078fcc161c0c78ebaa5aacd736, reversing changes made to 20f049fb50daee0c5e5a69b55b529af5737e8e3f. Conflicts: activerecord/test/cases/adapters/sqlite3/sqlite3_adapter_test.rb | ||||
* | Allow precision option for postgresql datetimes | Tony Schneider | 2012-06-22 | 1 | -0/+65 |
| | | | | | | | | | | This patch addresses the difficulty of retrieving datetime fields. By default, the database holds a higher precision than the time as a String. This issue is discussed at length at the following links: - [#3519](https://github.com/rails/rails/issues/3519) - [#3520](https://github.com/rails/rails/issues/3520) Also, kudos to @mattscilipoti | ||||
* | Improve the derivation of HABTM assocation join table names | Andrew White | 2012-06-22 | 2 | -12/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Improve the derivation of HABTM join table name to take account of nesting. It now takes the table names of the two models, sorts them lexically and then joins them, stripping any common prefix from the second table name. Some examples: Top level models (Category <=> Product) Old: categories_products New: categories_products Top level models with a global table_name_prefix (Category <=> Product) Old: site_categories_products New: site_categories_products Nested models in a module without a table_name_prefix method (Admin::Category <=> Admin::Product) Old: categories_products New: categories_products Nested models in a module with a table_name_prefix method (Admin::Category <=> Admin::Product) Old: categories_products New: admin_categories_products Nested models in a parent model (Catalog::Category <=> Catalog::Product) Old: categories_products New: catalog_categories_products Nested models in different parent models (Catalog::Category <=> Content::Page) Old: categories_pages New: catalog_categories_content_pages Also as part of this commit the validity checks for HABTM assocations have been moved to ActiveRecord::Reflection One side effect of this is to move when the exceptions are raised from the point of declaration to when the association is built. This is consistant with other association validity checks. | ||||
* | Change minimum (default) log level in PostgreSQL to warning. | kennyj | 2012-06-18 | 1 | -0/+4 |
| | |||||
* | Add uuid type support to PostgreSQL adapter | Konstantin Shabanov | 2012-06-14 | 1 | -0/+15 |
| | |||||
* | Fix logs name consistency. | kennyj | 2012-05-19 | 3 | -15/+92 |
| | |||||
* | Fix warning: ambiguous first argument. | kennyj | 2012-05-18 | 1 | -1/+1 |
| | |||||
* | Merge pull request #6192 from ↵ | Aaron Patterson | 2012-05-16 | 1 | -8/+11 |
|\ | | | | | | | | | danmcclain/add_inet_and_cidr_types_to_postgresql_adapter Add support for macaddr, inet, and cidr types to PostgreSQL adapter | ||||
| * | Removes NetAddr dependency | Dan McClain | 2012-05-08 | 1 | -3/+4 |
| | | |||||
| * | Converts inet and cidr columns to NetAddr::CIDR | Dan Seaver | 2012-05-07 | 1 | -4/+6 |
| | | |||||
| * | Adds migration and schema dump support for INET, CIDR, and MACADDR | Dan Seaver | 2012-05-05 | 1 | -3/+3 |
| | | |||||
* | | Remove unneeded tests | Piotr Sarnacki | 2012-05-16 | 1 | -12/+0 |
| | | |||||
* | | SQLite3 doesn't actually support the 'time' type. | Erich Menge | 2012-05-15 | 1 | -0/+5 |
| | | |||||
* | | Set the primary key during #copy_table if necessary. Fixes [#2312] | Sean Scally | 2012-05-14 | 1 | -0/+8 |
| | | |||||
* | | Add config option, rdoc, tests for mysql(2) STRICT_ALL_TABLES mode. | Michael Pearson | 2012-05-05 | 2 | -0/+29 |
|/ | |||||
* | Merge pull request #3713 from kf8a/master | Aaron Patterson | 2012-05-04 | 1 | -0/+12 |
|\ | | | | | postgresql adapter should quote not a number and infinity correctly for float columns | ||||
| * | postgresql adapter handles quoting of not a number (NaN) and Infinity | Sven Bohm | 2011-11-21 | 1 | -0/+12 |
| | | |||||
* | | Merge pull request #5698 from dougcole/support_postgresql_partitioning | Aaron Patterson | 2012-04-27 | 1 | -0/+31 |
|\ \ | | | | | | | Support postgresql partitioning by making INSERT RETURNING optional | ||||
| * | | refactor configuration of insert_returning | Doug Cole | 2012-04-07 | 1 | -19/+15 |
| | | | |||||
| * | | pick better names and add a little documentation | Doug Cole | 2012-04-01 | 1 | -8/+8 |
| | | | |||||
| * | | improve test coverage | Doug Cole | 2012-03-31 | 1 | -0/+26 |
| | | | |||||
| * | | add use_returning as a postgresql connection config | Doug Cole | 2012-03-31 | 1 | -0/+9 |
| | | | |||||
* | | | find and replace deprecated keys | Jon Leighton | 2012-04-27 | 2 | -2/+2 |
| | | | |||||
* | | | %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other ↵ | Jon Leighton | 2012-04-27 | 4 | -7/+7 |
| | | | | | | | | | | | | things | ||||
* | | | fix tests for SQLite3Adapter | Andrey Deryabin | 2012-04-27 | 1 | -1/+1 |
| | | | |||||
* | | | fix tests for sqlite3 | Andrey Deryabin | 2012-04-27 | 1 | -1/+1 |
| | | | |||||
* | | | remove calls to find(:first), find(:last) and find(:all) | Jon Leighton | 2012-04-26 | 2 | -2/+2 |
| | | | |||||
* | | | Always quote hstore keys and values | Ryan Fitzgerald | 2012-04-24 | 1 | -1/+9 |
| | | | | | | | | | | | | | | | | | | | | | escape_hstore uses quotation marks around keys and values only if it seems necessary. However, it currently breaks in the presence of some non-ASCII characters. Instead of trying to guess exactly which characters are safe, it seems better to always use quotes. | ||||
* | | | be sure to currectly fetch PK name from MySQL even if the PK has some custom ↵ | Akira Matsuda | 2012-04-19 | 1 | -0/+30 |
|/ / | | | | | | | option | ||||
* | | Fix GH #5430. A Payload name for schema_search_path should be SCHEMA. | kennyj | 2012-03-15 | 1 | -0/+7 |
| | | |||||
* | | Merge pull request #5306 from kennyj/fix_69c7f02 | José Valim | 2012-03-08 | 2 | -2/+2 |
|\ \ | | | | | | | Change the message string to use in test case. | ||||
| * | | Change the string to use in test case. | kennyj | 2012-03-07 | 2 | -2/+2 |
| | | | |||||
* | | | Merge pull request #5315 from ↵ | Aaron Patterson | 2012-03-07 | 1 | -2/+41 |
|\ \ \ | |/ / |/| | | | | | | | | travisjeffery/enhance_postgresql_adapter_schema_support Enhance PostgreSQL Adapter schema support | ||||
| * | | Adds #create/drop_schema on the PostgreSQL Adapter. | Travis Jeffery | 2012-03-07 | 1 | -2/+37 |
| | | | |||||
| * | | Add #schema_names to PostgreSQL Adapter. | Travis Jeffery | 2012-03-07 | 1 | -0/+4 |
| | | | |||||
* | | | Fix message assertions for quoting database name in "show tables" for mysql | Carlos Antonio da Silva | 2012-03-04 | 2 | -2/+2 |
| | | | |||||
* | | | Fix GH #3163. Should quote database on mysql/mysql2. | kennyj | 2012-03-05 | 2 | -0/+21 |
|/ / | |||||
* | | only log an error if there is a logger. fixes #5226 | Aaron Patterson | 2012-03-02 | 1 | -0/+9 |
| | | |||||
* | | Remove NULLS FIRST/LAST. closes #5152 | kennyj | 2012-02-25 | 1 | -0/+5 |
| | | |||||
* | | Restored ability to identify ID and Sequence from tables relying on a ↵ | William Lawson | 2012-02-20 | 1 | -3/+7 |
| | | | | | | | | nonmatching sequence default value for PK. |