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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/version.rb +1 -1
- data/test/cases/adapters/cockroachdb/referential_integrity_test.rb +4 -2
- data/test/cases/defaults_test.rb +1 -1
- data/test/excludes/ActiveRecord/ConnectionAdapters/PostgreSQLAdapterTest.rb +7 -0
- data/test/excludes/PostgreSQLReferentialIntegrityTest.rb +4 -0
- data/test/excludes/SchemaIndexOpclassTest.rb +1 -0
- metadata +3 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 89db3d0e5b53942784db247fbdf247790cc0e8a06861f6881546e348d0c151bb
|
|
4
|
+
data.tar.gz: 26e1b278cf2abe8dc532eaa3ab187c356760d40cb1b42c1a3561117ab4a32c58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "cases/helper_cockroachdb"
|
|
4
|
-
require "support/connection_helper" # for #
|
|
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
|
-
|
|
24
|
+
reset_pool
|
|
23
25
|
end
|
|
24
26
|
|
|
25
27
|
exclude_from_transactional_tests :test_only_catch_active_record_errors_others_bubble_up
|
data/test/cases/defaults_test.rb
CHANGED
|
@@ -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.
|
|
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.
|
|
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:
|
|
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:
|
|
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:
|