Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename to test_mysql_strict_mode_disabled_dont_override_global_sql_mode | Yasuo Honda | 2012-08-22 | 1 | -3/+4 |
| | | | | | | | | | Reason since MySQL 5.6.6-m9 the `sql_mode` default value is `NO_ENGINE_SUBSTITUTION`. This default parameter change is out of control from Rails. This test verifies Rails not overriding the default `@@GLOBAL.sql_mode` value by checking if `@@GLOBAL.sql_mode` is the same as `@@SESSION.sql_mode`. | ||||
* | Deprecate ActiveRecord::Base.scoped. | Jon Leighton | 2012-07-27 | 1 | -1/+1 |
| | | | | | | | 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 | 1 | -1/+1 |
| | | | | | | | | | | | 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. | ||||
* | 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 | ||||
* | fix: limit of enum columns of mysql | Yamada Masaki | 2012-06-28 | 1 | -0/+10 |
| | |||||
* | Improve the derivation of HABTM assocation join table names | Andrew White | 2012-06-22 | 1 | -6/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Add config option, rdoc, tests for mysql(2) STRICT_ALL_TABLES mode. | Michael Pearson | 2012-05-05 | 1 | -0/+13 |
| | |||||
* | find and replace deprecated keys | Jon Leighton | 2012-04-27 | 1 | -1/+1 |
| | |||||
* | %s/find(:\(first\|last\|all\), \([^()]*\))/scoped(\2).\1/gcI amongst other ↵ | Jon Leighton | 2012-04-27 | 1 | -1/+1 |
| | | | | things | ||||
* | remove calls to find(:first), find(:last) and find(:all) | Jon Leighton | 2012-04-26 | 1 | -1/+1 |
| | |||||
* | 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 | ||||
* | Change the string to use in test case. | kennyj | 2012-03-07 | 1 | -1/+1 |
| | |||||
* | Fix message assertions for quoting database name in "show tables" for mysql | Carlos Antonio da Silva | 2012-03-04 | 1 | -1/+1 |
| | |||||
* | Fix GH #3163. Should quote database on mysql/mysql2. | kennyj | 2012-03-05 | 1 | -0/+10 |
| | |||||
* | Fix CI | Jon Leighton | 2011-12-28 | 1 | -8/+8 |
| | |||||
* | remove checks for encodings availability | Sergey Nartimov | 2011-12-25 | 1 | -11/+5 |
| | |||||
* | Deprecate set_table_name in favour of self.table_name= or defining your own ↵ | Jon Leighton | 2011-11-29 | 1 | -1/+1 |
| | | | | method. | ||||
* | Verify that #3690 has been closed by previous changes to the mysql | Jon Leighton | 2011-11-19 | 1 | -1/+5 |
| | | | | | | | | adapters. These tests fail on the v3.1.2 tag. Closes #3690. | ||||
* | fix to remove warning in test cases | Vishnu Atrai | 2011-10-16 | 1 | -2/+2 |
| | |||||
* | Only use LOWER for mysql case insensitive uniqueness check when column has a ↵ | Joseph Palermo | 2011-10-09 | 1 | -0/+35 |
| | | | | case sensitive collation. | ||||
* | LRU cache in mysql and sqlite are now per-process caches. | Aaron Patterson | 2011-09-07 | 1 | -0/+23 |
| | |||||
* | Create an AbstractMysqlAdapter to abstract the common code between ↵ | Jon Leighton | 2011-08-29 | 1 | -4/+4 |
| | | | | MysqlAdapter and Mysql2Adapter. | ||||
* | move around tests | Aaron Patterson | 2011-07-21 | 1 | -0/+10 |
| | |||||
* | please use ruby -I lib:test path/to/test.rb, or export RUBY_OPT | Aaron Patterson | 2011-06-06 | 7 | -7/+7 |
| | |||||
* | Refactor Active Record test connection setup. Please see the ↵ | Jon Leighton | 2011-06-04 | 7 | -8/+7 |
| | | | | RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases. | ||||
* | Namespace Fixtures in ActiveRecord | Jason Noble | 2011-05-07 | 1 | -1/+1 |
| | | | [Fixes #439] | ||||
* | added the mysql schema test to mysql2 adapter, and fixed the corresponding ↵ | Josh Kalderimis | 2011-05-03 | 1 | -1/+1 |
| | | | | failures | ||||
* | mysql type cast should return integers when typecasting true / false | Aaron Patterson | 2011-04-14 | 1 | -0/+26 |
| | |||||
* | use index based substitution for bind parameters | Aaron Patterson | 2011-04-13 | 1 | -1/+1 |
| | |||||
* | fixing variable name in mysql test | Aaron Patterson | 2011-04-11 | 1 | -1/+1 |
| | |||||
* | adding mysql adapter test case | Aaron Patterson | 2011-04-11 | 1 | -0/+69 |
| | |||||
* | schemas set by set_table_name are respected by the mysql adapter. [#5322 ↵ | Aaron Patterson | 2011-03-21 | 1 | -0/+36 |
| | | | | state:resolved] | ||||
* | Merge remote branch 'rails/master' into identity_map | Emilio Tagua | 2011-02-15 | 1 | -21/+3 |
|\ | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/examples/performance.rb activerecord/lib/active_record/association_preload.rb activerecord/lib/active_record/associations.rb activerecord/lib/active_record/associations/association_proxy.rb activerecord/lib/active_record/autosave_association.rb activerecord/lib/active_record/base.rb activerecord/lib/active_record/nested_attributes.rb activerecord/test/cases/relations_test.rb | ||||
| * | removing irrelevant test | Aaron Patterson | 2011-02-14 | 1 | -18/+0 |
| | | |||||
| * | fixing unused variable warnings | Aaron Patterson | 2011-01-17 | 1 | -3/+3 |
| | | |||||
* | | IdentityMap - misc fixes | Marcin Raczkowski | 2010-11-19 | 1 | -1/+1 |
|/ | | | | | | - Added IdentityMap to be included into AR::Base - Fixed bug with Mysql namespace missing when running tests only for sqlite - Added sqlite as default connection | ||||
* | renaming exec in the mysql adapter | Aaron Patterson | 2010-11-05 | 1 | -13/+13 |
| | |||||
* | mysql tests are mostly passing | Aaron Patterson | 2010-10-26 | 1 | -0/+58 |
| | |||||
* | Bug Fix -- clean up connection after stored procedure [#3151 state:resolved] | Jeff Lawson | 2010-08-17 | 2 | -0/+16 |
| | |||||
* | fixed indentation in test cases | Mark Turner | 2010-08-11 | 1 | -1/+1 |
| | | | | Signed-off-by: wycats <wycats@gmail.com> | ||||
* | update tests for mysql2 support | Brian Lopez | 2010-08-02 | 1 | -1/+1 |
| | |||||
* | Make use of redefine_method, removed some more redefining warnings | Łukasz Strzałkowski | 2010-07-19 | 1 | -0/+1 |
| | |||||
* | Merge branch 'tago' | José Valim | 2010-06-26 | 1 | -3/+3 |
| | |||||
* | reorganizing adapter specific tests. [#4974 state:resolved] | Aaron Patterson | 2010-06-25 | 3 | -0/+364 |
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> |