Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Custom index type support with :using. | doabit | 2013-03-24 | 6 | -5/+87 |
| | |||||
* | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -0/+10 |
| | |||||
* | Merge pull request #9866 from choudhuryanupam/fix_connection_test | Carlos Antonio da Silva | 2013-03-22 | 1 | -1/+1 |
|\ | | | | | Removed unused loop variable | ||||
| * | Removed unused loop variable | Anupam Choudhury | 2013-03-22 | 1 | -1/+1 |
| | | |||||
* | | Removed unnecessary block | Anupam Choudhury | 2013-03-22 | 1 | -2/+1 |
| | | |||||
* | | Delete failing test | Jon Leighton | 2013-03-22 | 1 | -36/+0 |
|/ | | | | | | | | | | | | I don't think this is testing anything useful, and the test code is exceedingly brittle. It is broken since 34c7e73c1def1312e59ef1f334586ff2f668246e because the test code makes assumptions about the implementation of PostgreSQLAdapter#active? which are incorrect after the commit. I could fix this test but it would be even more brittle (by stubbing the underlying @connection.connect_poll) and it doesn't test any complex logic. I conclude that it's not worth it. | ||||
* | Fix copy table index test; Change == to ! on false in travis.rb | Vipul A M | 2013-03-21 | 1 | -1/+1 |
| | |||||
* | Removed unnecessary block | Anupam Choudhury | 2013-03-20 | 1 | -2/+1 |
| | |||||
* | sets limit 191 for schema_migrations#version in mysql2 if the encoding is ↵ | Xavier Noria | 2013-03-17 | 1 | -0/+26 |
| | | | | | | "utf8mb4" Please, see rationale in the included CHANGELOG patch. | ||||
* | Merge pull request #9686 from strzalek/cast_number_to_string_in_pg | Jon Leighton | 2013-03-15 | 1 | -0/+8 |
|\ | | | | | Cast number to string in Postgres | ||||
| * | Cast number to string in Postgres | Łukasz Strzałkowski | 2013-03-12 | 1 | -0/+8 |
| | | | | | | | | fixes #9170 | ||||
* | | you can provide uuid_generate_v4 as the default value for uuid columns | Aaron Patterson | 2013-03-14 | 1 | -0/+43 |
| | | |||||
* | | MOAR cleanups. | Vipul A M | 2013-03-14 | 1 | -1/+0 |
|/ | |||||
* | Pass column to quote when copying a sqlite table. | Matthew M. Boedicker | 2013-03-11 | 1 | -1/+5 |
| | | | | To make quote escape binary data correctly it needs the column passed in. | ||||
* | `Connection#structure_dump` is no longer used. #9518 | Yves Senn | 2013-03-06 | 3 | -16/+0 |
| | | | | | | | As of ccc6910c we use `mysqldump` to create the `structure.sql`. The old `#structure_dump` code is still in AR but never used. I removed all relevant parts from the code-base. | ||||
* | Fix PostgreSQL TIMESTAMP WITH TIME ZONE to return ActiveSupport::Time | Troy Kruthoff | 2013-03-01 | 1 | -0/+2 |
| | | | | | | | | | | In an AR model a timestamptz attribute would return a ruby string and AR tests did not check for any type casting. Previous tests would pass only because an assert_equal was being used on a Time.utc object, which will parse the right side of the eq to a valid Time instance for comparision. switch to test instance of Time instead of ActiveSupport::TimeWithZone | ||||
* | Wrong exception is occured when raising no translatable exception | kennyj | 2013-03-01 | 1 | -0/+6 |
| | |||||
* | Support PostgreSQL specific column types when using `change_table`. | Yves Senn | 2013-02-28 | 2 | -0/+30 |
| | | | | | | | | Closes #9480. We use `TableDefinition` for `#create_table` and `Table` for `#change_table`. The PostgreSQL sepcifc types were only defined on `TableDefinition` so I also added them to `Table`. | ||||
* | Skip connection url test when the machine is using socket configuration. | Rafael Mendonça França | 2013-02-24 | 1 | -0/+3 |
| | | | | The connection url parssing don't accept the socket option | ||||
* | Revert "checking in the abstractions for valid type checking:" | Jon Leighton | 2013-02-15 | 3 | -27/+0 |
| | | | | | | | | | | | | | | | | This reverts commit c321b309a9a90bbfa0912832c11b3fef52e71840. Conflicts: activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb Reason: failing test 1) Error: test_valid_column(ActiveRecord::ConnectionAdapters::SQLite3AdapterTest): NoMethodError: undefined method `column' for test/cases/adapters/sqlite3/sqlite3_adapter_test.rb:29:in `test_valid_column' | ||||
* | Merge pull request #9204 from ranjaykrishna/col-prob | Aaron Patterson | 2013-02-12 | 3 | -0/+27 |
|\ | | | | | schema dumper tests now conducted by ActiveRecord::Base.Connection | ||||
| * | checking in the abstractions for valid type checking: | Ranjay Krishna | 2013-02-12 | 3 | -0/+27 |
| | | |||||
* | | fixing bit string test | Aaron Patterson | 2013-02-10 | 1 | -3/+3 |
| | | |||||
* | | improve tests to check for existence of extensions method, and skip testing ↵ | Justin George | 2013-02-06 | 1 | -0/+1 |
| | | | | | | | | dumped extensions if they are unsupported by the database | ||||
* | | Add some tests to enumerate how extensions should be stored in the schema output | Justin George | 2013-02-06 | 1 | -0/+4 |
| | | |||||
* | | Enable hstore extensions on tests if it is not enabled and database supports it | Rafael Mendonça França | 2013-02-05 | 1 | -1/+8 |
| | | |||||
* | | class_eval should use __FILE__ and __LINE__ | Neeraj Singh | 2013-01-30 | 1 | -1/+1 |
| | | |||||
* | | add API to pg for enabling / disabling hstore | Aaron Patterson | 2013-01-28 | 1 | -7/+29 |
| | | |||||
* | | Use Encoding::UTF_8 constant :do_not_litter: | Akira Matsuda | 2013-01-28 | 1 | -1/+1 |
| | | |||||
* | | Fix PostgreSQL tests on Travis | Andrew White | 2013-01-24 | 1 | -10/+31 |
| | | | | | | | | Travis only has PostgreSQL 9.1.x but 9.2 is required for range datatypes. | ||||
* | | Add postgresql range types support | bUg | 2013-01-23 | 2 | -106/+281 |
| | | |||||
* | | Don't use anonymous classes in connection tests | Guillermo Iguaran | 2013-01-19 | 1 | -3/+5 |
|/ | |||||
* | Don't rely on Hash key's ordering | Vitor Baptista | 2013-01-16 | 1 | -0/+1 |
| | | | | | | | | | | | | | | | | | | | If we set encoding latin1 for a PostgreSQL database, it calls PostgreSQLAdapter::create_database with options that have, among other things: { 'encoding' => 'latin1' } Then, we use reverse_merge(:encoding => "utf8") to setup the default encoding. In the end, the hash looks like: { :encoding => 'utf8', 'encoding' => 'latin1' } The call to options.symbolize_keys calls to_sym on each_key of this Hash. It usually means that the encoding passed overwrites the default utf8, but it's not guaranteed. So, we shouldn't rely on it. The same was happening in ActiveRecord::ConnectionHandling. | ||||
* | Reset test data, and fix bug that the inserted data were not actually selected | Akira Matsuda | 2013-01-08 | 1 | -11/+16 |
| | |||||
* | Remove unnecessary begin..rescue..end, use only rescue | Akira Matsuda | 2013-01-06 | 2 | -14/+10 |
| | |||||
* | Use better variable names for ltree tests, remove instance variable | Carlos Antonio da Silva | 2013-01-05 | 2 | -14/+12 |
| | |||||
* | Support for PostgreSQL's ltree data type. | Rob Worley | 2013-01-04 | 2 | -1/+47 |
| | |||||
* | Standardize the use of current_adapter? | Rafael Mendonça França | 2013-01-01 | 1 | -1/+1 |
| | |||||
* | add missing require and fixtures | Aaron Patterson | 2012-12-29 | 1 | -0/+3 |
| | |||||
* | fix time typcasting on group counts in PG | Aaron Patterson | 2012-12-28 | 1 | -0/+6 |
| | |||||
* | Wrap table creation in a transaction. | Rafael Mendonça França | 2012-12-21 | 1 | -6/+8 |
| | | | | This will make the tests pass when the intrange datatype is not present | ||||
* | AR supporting new int4range and int8range data type on PostgreSQL >= 9.2. ↵ | Alexey | 2012-12-17 | 1 | -1/+18 |
| | | | | Fix realization | ||||
* | AR supporting new intrange data type on PostgreSQL >= 9.2 | Alexey | 2012-12-16 | 1 | -0/+87 |
| | |||||
* | Session variables for mysql, mysql2, and postgresql adapters can be set | Aaron Stone | 2012-12-08 | 3 | -0/+75 |
| | | | | | | | | | in the new 'variables:' hash in each database config section in database.yml. The key-value pairs of this hash will be sent in a 'SET key = value, ...' query on new database connections. The configure_connection methods from mysql and mysql2 into are consolidated into the abstract_mysql base class. | ||||
* | Merge pull request #6245 from bogdan/bc_timestamp | Rafael Mendonça França | 2012-11-21 | 1 | -0/+9 |
|\ | | | | | Postgresql adapter: fix handling of BC timestamps | ||||
| * | Fix postgresql adapter to handle bc timestamps correctly | Bogdan Gusiev | 2012-11-21 | 1 | -0/+9 |
| | | |||||
* | | Refactoring, testing and documenting pg_connection.distinct | Semyon Perepelitsa | 2012-11-21 | 1 | -0/+29 |
|/ | |||||
* | Postgresql doesn't accepts limits on text columns. | Victor Costan | 2012-11-20 | 1 | -0/+18 |
| | |||||
* | Remove not assigned variable warning from sqlite3 adapter test | Carlos Antonio da Silva | 2012-10-29 | 1 | -1/+1 |
| | |||||
* | SQLite3Adapter#type_cast should not mutate arguments | Stefan Rusterholz | 2012-10-28 | 1 | -0/+6 |
| |