activerecord-cockroachdb-adapter icon indicating copy to clipboard operation
activerecord-cockroachdb-adapter copied to clipboard

CockroachDB adapter for ActiveRecord.

Results 73 activerecord-cockroachdb-adapter issues
Sort by recently updated
recently updated
newest added

The test crashes for me locally. It might be related to an issue with forking, the pg gem, and macOS (see https://github.com/ged/ruby-pg/issues/311, and https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/62#issuecomment-612914655). This test might pass on a...

``` Failure: ActiveRecord::PostgresqlTransactionTest#test_raises_LockWaitTimeout_when_lock_wait_timeout_exceeded [/Users/alimi/repos/rails/activerecord/test/cases/adapters/postgresql/transaction_test.rb:98]: [ActiveRecord::LockWaitTimeout] exception expected, not Class: Message: ---Backtrace--- /Users/alimi/repos/rails/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb:75:in `exec' /Users/alimi/repos/rails/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb:75:in `block (2 levels) in execute' /Users/alimi/repos/rails/activesupport/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads' /Users/alimi/repos/rails/activesupport/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares' /Users/alimi/repos/rails/activesupport/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads' /Users/alimi/repos/rails/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb:74:in `block in...

The Postgres DatabaseTasks implementation uses `pg_dump` to dump the database in `db:structure:dump`. CockroachDB doesn't support `pg_dump`, so this plugin should use `DUMP` and its inverse when they're officially supported.

In Postgres/CockroachDB if a column is defined with just precision and no scale, the scale is assumed to be 0 (ex. `NUMERIC(10)` -> `NUMERIC(10,0)`), but ActiveRecord treats this as a...

In `initialize_type_map` the call to `super` has to be done after custom types are registered. This is a bug in ActiveRecord and could be fixed by this PR https://github.com/rails/rails/pull/38571. We'll...

Hi 👋 The gem currently requires pg 0.21.0 from June 12, 2017 (209 KB) While 1.1.3 is the latest version of the pg gem released in September 07, 2018. [gem...

``` Error: PostgresqlNetworkTest#test_cidr_column: ActiveRecord::StatementInvalid: PG::UndefinedObject: ERROR: type 'cidr' does not exist : SELECT 'cidr'::regtype::oid /Users/alimi/repos/rails/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `exec' /Users/alimi/repos/rails/activerecord/lib/active_record/connection_adapters/postgresql/database_statements.rb:63:in `block (2 levels) in query' /Users/alimi/repos/rails/activesupport/lib/active_support/dependencies/interlock.rb:48:in `block in permit_concurrent_loads' /Users/alimi/repos/rails/activesupport/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares' /Users/alimi/repos/rails/activesupport/lib/active_support/dependencies/interlock.rb:47:in `permit_concurrent_loads'...

``` Failure: PostgresqlNumberTest#test_values [/Users/alimi/repos/rails/activerecord/test/cases/adapters/postgresql/numbers_test.rb:35]: Expected: Infinity Actual: 0.0 bin/rails test Users/alimi/repos/rails/activerecord/test/cases/adapters/postgresql/numbers_test.rb:25 ``` See the [Contributing Guide](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/blob/master/CONTRIBUTING.md#setup-and-running-tests) for instructions on running tests. If the test isn't valid against CockroachDB 1. Add...

Below is a list of all the ActiveRecord tests that get run against PostgreSQL on Rails 5.2. Check off tests once they're passing against master. There will be tests that...

``` Failure: DefaultScopingTest#test_joins_not_affected_by_scope_other_than_default_or_unscoped [/Users/alimi/repos/rails/activerecord/test/cases/scoping/default_scoping_test.rb:417]: --- expected +++ actual @@ -1 +1 @@ -[#, #, #, #, #, #, #, #, #, #, #] +[#, #, #, #, #, #, #,...