Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Revert "Merge pull request #10043 from cconstantine/master" | Rafael Mendonça França | 2013-04-18 | 1 | -6/+0 |
| | | | | | | | This reverts commit 521035af530482d6d9ad2dae568eaeb0ab188e1c, reversing changes made to 222011dbee842bbc60d3aaaa3145356b90a30fd1. Reason: This broke the tests | ||||
* | Merge pull request #10043 from cconstantine/master | Rafael Mendonça França | 2013-04-18 | 1 | -0/+6 |
|\ | | | | | DB with postgres string array column doesn't load fixtures well | ||||
| * | Fix loading of string arrays in postgres | Chris Constantine | 2013-04-08 | 1 | -0/+6 |
| | | |||||
* | | let EXPLAIN use a thread locals registry [John J. Wang & Xavier Noria] | Xavier Noria | 2013-04-16 | 1 | -7/+0 |
| | | | | | | | | Closes #10198. | ||||
* | | Fix #7619. 0x prefix must be added when assigning hexadecimal string into ↵ | kennyj | 2013-04-17 | 1 | -1/+7 |
| | | | | | | | | bit column in Postgresql, because solving ambiguity. | ||||
* | | Revert "fixing bit string test" | kennyj | 2013-04-16 | 1 | -3/+3 |
| | | | | | | | | | | | | This reverts commit cdd293cb963b895ff580eb20d10f5d56ecb3d447. Reason: This wasn't properly fix. | ||||
* | | fix for the bytea/binary nil value bug | Matt Aimonetti | 2013-04-14 | 1 | -1/+1 |
| | | |||||
* | | added a test suite for the postgres binary type | Matt Aimonetti | 2013-04-14 | 1 | -0/+87 |
|/ | | | | this shows a problem with nil values | ||||
* | Merge pull request #9876 from macksmind/restore_cols_dropped_by_hstore_test | Rafael Mendonça França | 2013-03-26 | 1 | -15/+5 |
|\ | | | | | Restore columns dropped by hstore test | ||||
| * | Combine tests and restore columns dropped by hstore testing | Mack Earnhardt | 2013-03-26 | 1 | -15/+5 |
| | | | | | | | | | | Disabling the hstore extension during testing created order dependent test failures. | ||||
* | | Checks :algorithm argument for valid values | Dan McClain | 2013-03-26 | 1 | -0/+3 |
| | | |||||
* | | Adds support for concurrent indexing in PostgreSQL adapter | Dan McClain | 2013-03-25 | 1 | -5/+11 |
| | | | | | | | | | | | | | | | | Adds support for algorithm option in MySQL indexes Moves USING and algorithm options upstream The syntax is still specific to the Adapter, so the actual executed string happens in the corresponding adapter | ||||
* | | Created a layer of abstraction for the valid type checking in schema dumper. ↵ | Ranjay Krishna | 2013-03-25 | 1 | -0/+9 |
| | | | | | | | | Now, connection handles the check for valid types so that each database can handle the changes individually. | ||||
* | | Merge branch 'jlxw-patch-2' | Rafael Mendonça França | 2013-03-23 | 1 | -0/+4 |
|\ \ | | | | | | | | | | Closes #9184 | ||||
| * | | Fix regex to strip quotations from hstore values | jlxw | 2013-03-23 | 1 | -0/+4 |
| | | | | | | | | | | | | Previously regex did not strip quotation marks where hstore values were multi-line strings. | ||||
* | | | Custom index type support with :using. | doabit | 2013-03-24 | 2 | -5/+26 |
|/ / | |||||
* / | add uuid primary key support | Aaron Patterson | 2013-03-22 | 1 | -0/+10 |
|/ | |||||
* | 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. | ||||
* | 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 |
|/ | |||||
* | 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`. | ||||
* | Revert "checking in the abstractions for valid type checking:" | Jon Leighton | 2013-02-15 | 1 | -9/+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 | 1 | -0/+9 |
|\ | | | | | schema dumper tests now conducted by ActiveRecord::Base.Connection | ||||
| * | checking in the abstractions for valid type checking: | Ranjay Krishna | 2013-02-12 | 1 | -0/+9 |
| | | |||||
* | | 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 |
| | | |||||
* | | 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 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 |
| | |||||
* | 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 |
| | |||||
* | 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 | 1 | -0/+41 |
| | | | | | | | | | 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 |
| | |||||
* | Fix typo in inet and cidr saving | Miguel Herranz | 2012-10-14 | 1 | -0/+13 |
| |