Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Added SchemaDumper support for tables with jsonb columns. | Ted O'Meara | 2014-11-04 | 1 | -0/+8 | |
| | ||||||
* | fix set_pk_sequence and add a test for it. | Aaron Patterson | 2014-10-31 | 1 | -0/+8 | |
| | ||||||
* | add bigserial pk support | Aaron Patterson | 2014-10-29 | 1 | -0/+20 | |
| | ||||||
* | pg, test assigning non-array values to an array column. Closes #14716. | Yves Senn | 2014-10-16 | 1 | -0/+9 | |
| | | | | | | The behavior has changed since 4.1 and non-array values are no longer type casted to a blank array. This way the user can define custom validations on that property. | |||||
* | add a truncate method to the connection | Aaron Patterson | 2014-09-22 | 2 | -0/+23 | |
| | | | | | | it doesn't work on SQLite3 since it doesn't support truncate, but that's OK. If you call truncate on the connection, you're now bound to that database (same as if you use hstore or any other db specific feature). | |||||
* | pg, correctly dump foreign keys targeting tables in a different schema. | Yves Senn | 2014-09-17 | 1 | -0/+26 | |
| | | | | | | Closes #16907. [Matthew Draper & Yves Senn] | |||||
* | pg, add test cases for updateable views. | Yves Senn | 2014-09-11 | 1 | -0/+45 | |
| | ||||||
* | reuse view test-cases for pg materialized view tests. | Yves Senn | 2014-09-11 | 1 | -58/+9 | |
| | ||||||
* | Merge pull request #14056 from girishso/14041 | Yves Senn | 2014-09-09 | 1 | -2/+2 | |
|\ | | | | | | | | | | | | | SQLite3Adapter now checks for views in table_exists? fixes: 14041 Conflicts: activerecord/CHANGELOG.md | |||||
| * | SQLite3Adapter now checks for views in table_exists? fixes: 14041 | Girish S | 2014-02-14 | 1 | -0/+10 | |
| | | ||||||
* | | Added enable_extension! to helper | Abdelkader Boudih | 2014-09-05 | 4 | -21/+11 | |
| | | ||||||
* | | MySQL: skip GTID-unsafe statement tests when enforce_gtid_consistency is enabled | Jeremy Kemper | 2014-09-01 | 1 | -6/+8 | |
| | | ||||||
* | | Clear schema cache before each test | Akira Matsuda | 2014-09-01 | 1 | -0/+1 | |
| | | ||||||
* | | Clear schema cache before each test | Akira Matsuda | 2014-09-01 | 1 | -0/+1 | |
| | | ||||||
* | | MySQL: set connection collation along with the charset | Jeremy Kemper | 2014-08-30 | 2 | -0/+10 | |
| | | | | | | | | | | | | | | | | | | | | Sets the connection collation to the database collation configured in database.yml. Otherwise, `SET NAMES utf8mb4` will use the default collation for that charset (utf8mb4_general_ci) when you may have chosen a different collation, like utf8mb4_unicode_ci. This only applies to literal string comparisons, not column values, so it is unlikely to affect you. | |||||
* | | Don't test PostgreSQL implementation details | Akira Matsuda & Kohei Suzuki | 2014-08-29 | 1 | -3/+0 | |
| | | | | | | | | | | Asserting that the message contains "QUERY PLAN" is enough for the adapter's test. The plan may vary according to number of tuples etc. but that's out of our concern. | |||||
* | | pg, `default_sequence_name` needs to return a string. | Yves Senn | 2014-08-25 | 1 | -6/+6 | |
| | | | | | | | | | | | | | | | | | | This is a reacon to https://github.com/rails/rails/commit/d6c1205584b1ba597db4071b168681678b1e9875#commitcomment-7502487 This backwards incompatibility was introduced with d6c12055 to fix #7516. However both `connection.default_sequence_name` and `model.sequence_name` are public API. The PostgreSQL adapter should honor the interface and return strings. /cc @matthewd @chancancode | |||||
* | | Don't trim excess whitespace in pg #columns_for_distinct | Agis- | 2014-08-24 | 1 | -0/+8 | |
| | | | | | | | | Fixes #16623 introduced by https://github.com/rails/rails/commit/3d5a2019bcccc6fb01bee4811ca669f4383edb51 | |||||
* | | adding the exception RecordNotFound to UUID find | JoseLuis Torres | 2014-08-21 | 1 | -0/+14 | |
| | | ||||||
* | | Merge pull request #16481 from sgrif/sg-change-default-timestamps | David Heinemeier Hansson | 2014-08-17 | 3 | -6/+6 | |
|\ \ | | | | | | | Change the default `null` value for timestamps | |||||
| * | | Change the default `null` value for timestamps | Sean Griffin | 2014-08-12 | 3 | -6/+6 | |
| | | | | | | | | | | | | | | | | | | | | | As per discussion, this changes the model generators to specify `null: false` for timestamp columns. A warning is now emitted if `timestamps` is called without a `null` option specified, so we can safely change the behavior when no option is specified in Rails 5. | |||||
* | | | [ci skip] fix spelling of override | Akshay Vishnoi | 2014-08-13 | 2 | -2/+2 | |
|/ / | ||||||
* | | Add support for Postgresql JSONB | Philippe Creux | 2014-07-24 | 1 | -9/+25 | |
| | | | | | | | | [Philippe Creux, Chris Teague] | |||||
* | | Allow to specify a type for foreign key column in migrations | Andrey Novikov | 2014-07-22 | 1 | -1/+1 | |
| | | | | | | | | [Andrey Novikov & Łukasz Sarnacki] | |||||
* | | Merge pull request #16196 from yahonda/mysql_restrict_test | Matthew Draper | 2014-07-17 | 2 | -8/+6 | |
|\ \ | | | | | | | Revert "Rename to test_mysql_strict_mode_disabled_dont_override_global_sql_mode" | |||||
| * | | Revert "Rename to test_mysql_strict_mode_disabled_dont_override_global_sql_mode" | Yasuo Honda | 2014-07-17 | 2 | -8/+6 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit babc24c1b07c1fd58b9b3249b0256f9b0d45c0f0. Conflicts: activerecord/test/cases/adapters/mysql/connection_test.rb activerecord/test/cases/adapters/mysql2/connection_test.rb | |||||
* | | | Merge pull request #15944 from seuros/uuid | Rafael Mendonça França | 2014-07-16 | 1 | -0/+37 | |
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | Treat invalid uuid as nil Conflicts: activerecord/CHANGELOG.md | |||||
| * | | | Treat invalid uuid as nil | Abdelkader Boudih | 2014-07-14 | 1 | -0/+37 | |
| |/ / | ||||||
* / / | use foreign key DSL in our tests. | Yves Senn | 2014-07-16 | 1 | -2/+2 | |
|/ / | ||||||
* | | Merge pull request #16127 from Envek/fix_16111 | Matthew Draper | 2014-07-14 | 1 | -0/+23 | |
|\ \ | | | | | | | Dump PostgreSQL primary key with custom function as a default. | |||||
| * | | Dump PostgreSQL primary key with custom function as a default. | Andrey Novikov | 2014-07-11 | 1 | -0/+23 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, if use pgcrypto extension in PostgreSQL 9.4 beta 1, where uuid-ossp extension isn't available for moment of writing, and thus to use a gen_random_uuid() method as a primary key default. In this case schema dumper wasn't able to correctly reconstruct create_table statement and lost primary key constraint on schema load. Fixes #16111. | |||||
* | | | Merge pull request #16055 from sgrif/sg-refactor-sqlite3-strings | Matthew Draper | 2014-07-12 | 1 | -0/+7 | |
|\ \ \ | |/ / |/| | | Use a type object for type casting behavior on SQLite3 | |||||
| * | | Use a type object for type casting behavior on SQLite3 | Sean Griffin | 2014-07-11 | 1 | -0/+7 | |
| | | | ||||||
* | | | Merge pull request #16072 from sgrif/sg-xml-quoting | Rafael Mendonça França | 2014-07-08 | 1 | -1/+14 | |
|\ \ \ | | | | | | | | | Don't rely on the sql type to quote XML columns in PG | |||||
| * | | | Don't rely on the sql type to quote XML columns in PG | Sean Griffin | 2014-07-06 | 1 | -1/+14 | |
| | | | | ||||||
* | | | | Remove the `text?` predicate from the type objects | Sean Griffin | 2014-07-06 | 14 | -18/+0 | |
|/ / / | | | | | | | | | | | | | | | | | | | This was only used for uniqueness validations. The first usage was in conjunction with `limit`. Types which cast to string, but are not considered text cannot have a limit. The second case was only with an explicit `:case_sensitive => true` option given by the user. | |||||
* | | | Change back occurrences of SQLite(3) to sqlite3 when referring to the | Zachary Scott | 2014-07-06 | 1 | -5/+6 | |
| | | | | | | | | | | | | adapter, fixed from #16057 [ci skip] | |||||
* | | | Merge pull request #16057 from akshay-vishnoi/doc_change | Zachary Scott | 2014-07-06 | 1 | -2/+2 | |
|\ \ \ | | | | | | | | | [ci skip] /sqlite/i --> SQLite | |||||
| * | | | [ci skip] /sqlite/i --> SQLite | Akshay Vishnoi | 2014-07-06 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | active_record: Type cast booleans and durations for string columns. | Dylan Thacker-Smith | 2014-07-06 | 1 | -2/+2 | |
| | | | | ||||||
* | | | | Use the type object for quoting PG Ranges | Sean Griffin | 2014-07-05 | 2 | -6/+6 | |
| | | | | ||||||
* | | | | Fix typo | Rafael Mendonça França | 2014-07-04 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Merge pull request #16037 from sgrif/sg-money-quoting | Rafael Mendonça França | 2014-07-04 | 1 | -0/+24 | |
|\ \ \ \ | |/ / / |/| | | | Remove unneccessary special case for money in quoting | |||||
| * | | | Remove unneccessary special case for money in quoting | Sean Griffin | 2014-07-03 | 1 | -0/+24 | |
| | | | | ||||||
* | | | | Merge pull request #16036 from sgrif/sg-datetime-infinity | Rafael Mendonça França | 2014-07-03 | 1 | -0/+44 | |
|\ \ \ \ | | | | | | | | | | | Do not rely on the column type when quoting infinity | |||||
| * | | | | Do not rely on the column type when quoting infinity | Sean Griffin | 2014-07-03 | 1 | -0/+44 | |
| |/ / / | ||||||
* / / / | Use the type object for type casting HStore columns | Sean Griffin | 2014-07-03 | 1 | -11/+5 | |
|/ / / | ||||||
* | | | Quote range strings when quoting PG ranges | Sean Griffin | 2014-07-02 | 2 | -1/+18 | |
| | | | | | | | | | | | | | | | The test case for CVE-2014-3483 doesn't actually send the generated SQL to the database. The generated SQL is actually invalid for real inputs. | |||||
* | | | Fix SQL injection when querying against ranges and bitstrings | Rafael Mendonça França | 2014-07-02 | 1 | -0/+11 | |
|/ / | | | | | | | Fix CVE-2014-3483 and protect against CVE-2014-3482. | |||||
* | | Use the type object for sending JSON to the database | Sean Griffin | 2014-06-29 | 1 | -1/+1 | |
| | |