activerecord-cockroachdb-adapter 8.1.1 → 8.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3f8176b5dc25df91e28dc937133083fc0640d7485059e3a098300032e0cf7610
4
- data.tar.gz: 10448b0a9437ca1b28a8ef104e5e838e2484d3a085668f3c5ef7630463af0b6b
3
+ metadata.gz: 89db3d0e5b53942784db247fbdf247790cc0e8a06861f6881546e348d0c151bb
4
+ data.tar.gz: 26e1b278cf2abe8dc532eaa3ab187c356760d40cb1b42c1a3561117ab4a32c58
5
5
  SHA512:
6
- metadata.gz: 613aaf5e74fd644104aaf407894ab006ae2f46d0684920407820c83b3a7402879e90c907fd06a8d158204d66d3c7af5100e266cb2ff17979553c5fd94935c5d2
7
- data.tar.gz: 96d18f7427ecec5820c579bf579bc8567178bc876c459822d8d68ce9d31dbabfd82a5a5f18b54dab79f2402ff15ea507182706eb62337d82f486c3886f81dc66
6
+ metadata.gz: 599a68d0aeb772af6fb102004deb44d5d548a5d0dcc16e38d187c324c7957f023f8bd3cae6438922f103a6b813e661f0e429848b9cc2ec5b65a89f4491141df1
7
+ data.tar.gz: 26257cf4314a3654444f4154e75acb626c8ccf4d6a1237f18153c78a253dfd93125f663f803e01303492766e9db6e3478f87f4abdbbeb299d36cf425c84dc043
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Ongoing
4
4
 
5
+ ## 8.1.2 - 2026-09-25
6
+
7
+ - Verified compatibility with Rails 8.1.4 ([#407](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/407))
8
+
5
9
  ## 8.1.1 - 2026-08-18
6
10
 
7
11
  - Disabled `schema_locked` by default on connect for CockroachDB v25.3+ and unlocked tables around batched foreign key changes ([#404](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/404))
data/lib/version.rb CHANGED
@@ -15,5 +15,5 @@
15
15
  # limitations under the License.
16
16
 
17
17
  module ActiveRecord
18
- COCKROACH_DB_ADAPTER_VERSION = "8.1.1"
18
+ COCKROACH_DB_ADAPTER_VERSION = "8.1.2"
19
19
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "cases/helper_cockroachdb"
4
- require "support/connection_helper" # for #reset_connection
4
+ require "support/connection_helper" # for #reset_pool
5
5
  require "support/copy_cat"
6
6
 
7
7
  class CockroachDBReferentialIntegrityTest < ActiveRecord::PostgreSQLTestCase
@@ -18,8 +18,10 @@ class CockroachDBReferentialIntegrityTest < ActiveRecord::PostgreSQLTestCase
18
18
  @connection = ActiveRecord::Base.lease_connection
19
19
  end
20
20
 
21
+ # A new pool, not just a reset connection: the connection extended with
22
+ # ProgrammerMistake must not be reused by the next test.
21
23
  def teardown
22
- reset_connection
24
+ reset_pool
23
25
  end
24
26
 
25
27
  exclude_from_transactional_tests :test_only_catch_active_record_errors_others_bubble_up
@@ -39,7 +39,7 @@ module CockroachDB
39
39
  def test_default_decimal_zero_with_large_scale
40
40
  record = DefaultNumber.new
41
41
  assert_equal 0.0, record.decimal_number
42
- assert_equal 0.0, record.decimal_number_before_type_cast
42
+ assert_equal "0.0000000000000000", record.decimal_number_before_type_cast
43
43
  end
44
44
  end
45
45
  end
@@ -32,6 +32,13 @@ exclude :test_warnings_behavior_can_be_customized_with_a_proc, plpgsql_needed
32
32
  exclude :test_allowlist_of_warnings_to_ignore, plpgsql_needed
33
33
  exclude :test_allowlist_of_warning_codes_to_ignore, plpgsql_needed
34
34
 
35
+ if ActiveRecord::Base.with_connection(&:database_version) < 25_01_00
36
+ do_needed = "DO blocks are supported from CockroachDB v25.1."
37
+ exclude :test_clears_warnings_after_handling_non_execute_query, do_needed
38
+ exclude :test_clears_warnings_after_non_execute_warning_action_raises, do_needed
39
+ exclude :test_handles_warnings_after_non_execute_query_raises, do_needed
40
+ end
41
+
35
42
  exclude :test_translate_no_connection_exception_to_not_established, "CRDB doesn't implement pg_terminate_backend()"
36
43
 
37
44
  exclude :test_disable_extension_without_schema, ExcludeMessage::NO_HSTORE
@@ -12,3 +12,7 @@ exclude :test_does_not_break_nested_transactions, break_tx
12
12
  exclude :test_only_catch_active_record_errors_others_bubble_up,
13
13
  "Reimplemented in test/cases/adapters/cockroachdb/referential_integrity_test.rb" \
14
14
  " to use a different trigger for the error."
15
+
16
+ exclude :test_all_foreign_keys_valid_having_foreign_keys_with_partitioned_table,
17
+ "CockroachDB does not support PostgreSQL's declarative partitioning " \
18
+ "(CREATE TABLE ... PARTITION OF)."
@@ -1,3 +1,4 @@
1
1
  exclude :test_string_opclass_is_dumped, "Operator classes on indexes are not supported in CockroachDB."
2
2
  exclude :test_non_default_opclass_is_dumped, "Operator classes on indexes are not supported in CockroachDB."
3
3
  exclude :test_opclass_class_parsing_on_non_reserved_and_cannot_be_function_or_type_keyword, "Operator classes on indexes are not supported in CockroachDB."
4
+ exclude :test_opclass_class_parsing_from_another_schema, "CockroachDB does not support CREATE EXTENSION ... SCHEMA or schema-qualified operator classes."
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-cockroachdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.1
4
+ version: 8.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cockroach Labs
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-08-19 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activerecord
@@ -317,7 +316,6 @@ licenses:
317
316
  - Apache-2.0
318
317
  metadata:
319
318
  allowed_push_host: https://rubygems.org
320
- post_install_message:
321
319
  rdoc_options: []
322
320
  require_paths:
323
321
  - lib
@@ -332,8 +330,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
332
330
  - !ruby/object:Gem::Version
333
331
  version: '0'
334
332
  requirements: []
335
- rubygems_version: 3.5.23
336
- signing_key:
333
+ rubygems_version: 4.0.10
337
334
  specification_version: 4
338
335
  summary: CockroachDB adapter for ActiveRecord.
339
336
  test_files: