activerecord-cockroachdb-adapter 8.0.1 → 8.0.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: 9721532ff04318993f0835604dff8899289ee81e84e0f6daff67ad8a0024b608
4
- data.tar.gz: 82db81fab9b8358ea7953bfd7a9a3863794ea0946b56dfd5b57aefe7f2951eba
3
+ metadata.gz: 771e57dca5a537a4264cb80e8418562877580f7784e0c4192ad4055221b04e8d
4
+ data.tar.gz: f3f487f3cb99dcfc2b017f2ff1f1356bf736f13f2c6f76f283234ba9a1f26e50
5
5
  SHA512:
6
- metadata.gz: 6089da8ff8fcbb51435f6c408c663fe31d76c2652e7053b1f074ca36769ef88e99356a25b3530eb36dc2dbbc93e3a1db14d52ef76323abda301a093ed0217200
7
- data.tar.gz: c236373fdc39156b05aa546b596eda2aba501de27f9a486947fc4ec25a8f871210e436675e191d0b369ad1d159dd851544d0df538725f1bef18b3fc2efb1354f
6
+ metadata.gz: fdc2580d710fff2d9ab8285c5fe6e0e693122382790fbaa0122e3f160d45ca72f89247e5eb4166f0128d328d4586562a4b97a3bccae34f565abd01f326cc15f8
7
+ data.tar.gz: e362feac38a67040ce888abb7cdd64f0e207972f24d316fa4cabbe2cfe714ae086c39cbcbd7de4cedf330a14d859638da6092555e215cdd233ee0a7cc807752d
@@ -40,7 +40,7 @@ jobs:
40
40
  fail-fast: false
41
41
  matrix:
42
42
  # https://www.cockroachlabs.com/docs/releases/release-support-policy
43
- crdb: [v23.2, v24.1, v24.3]
43
+ crdb: [v23.2, v24.1, v24.3, v25.1]
44
44
  ruby: ["3.4"]
45
45
  name: Test (crdb=${{ matrix.crdb }} ruby=${{ matrix.ruby }})
46
46
  steps:
@@ -53,6 +53,8 @@ jobs:
53
53
  with:
54
54
  ruby-version: ${{ matrix.ruby }}
55
55
  bundler-cache: true
56
+ - name: Show Rails version
57
+ run: bundle info rails
56
58
  - name: Install and Start Cockroachdb
57
59
  run: |
58
60
  # Download CockroachDB
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  ## Ongoing
4
4
 
5
+ ## 8.0.2 - 2025-07-14
6
+
7
+ - Fixed the `db:migrate` command by removing usage of `execute_and_clear` function ([#377](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/377))
8
+
5
9
  ## 8.0.1 - 2025-03-04
6
10
 
7
11
  - Fixed retry logic after transaction rollback ([#364](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/364))
data/Gemfile CHANGED
@@ -60,6 +60,7 @@ group :development, :test do
60
60
 
61
61
  # Gems used for tests meta-programming.
62
62
  gem "parser"
63
+ gem "prism" # Parser is being softly deprecated, but Prism doesn't have rewriting capabilities
63
64
 
64
65
  # Gems used by the ActiveRecord test suite
65
66
  gem "bcrypt", "~> 3.1"
@@ -492,9 +492,8 @@ module ActiveRecord
492
492
  if @config[:use_follower_reads_for_type_introspection]
493
493
  initializer = OID::TypeMapInitializer.new(type_map)
494
494
  load_types_queries_with_aost(initializer, oids) do |query|
495
- execute_and_clear(query, "SCHEMA", [], allow_retry: true, materialize_transactions: false) do |records|
496
- initializer.run(records)
497
- end
495
+ records = internal_execute(query, "SCHEMA", [], allow_retry: true, materialize_transactions: false)
496
+ initializer.run(records)
498
497
  end
499
498
  else
500
499
  super
@@ -550,9 +549,8 @@ module ActiveRecord
550
549
  FROM pg_type as t AS OF SYSTEM TIME '-10s'
551
550
  WHERE t.typname IN (%s)
552
551
  SQL
553
- coders = execute_and_clear(query, "SCHEMA", [], allow_retry: true, materialize_transactions: false) do |result|
554
- result.filter_map { |row| construct_coder(row, coders_by_name[row["typname"]]) }
555
- end
552
+ result = internal_execute(query, "SCHEMA", [], allow_retry: true, materialize_transactions: false)
553
+ coders = result.filter_map { |row| construct_coder(row, coders_by_name[row["typname"]]) }
556
554
 
557
555
  map = PG::TypeMapByOid.new
558
556
  coders.each { |coder| map.add_coder(coder) }
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.0.1"
18
+ COCKROACH_DB_ADAPTER_VERSION = "8.0.2"
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-cockroachdb-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.0.1
4
+ version: 8.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cockroach Labs
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2025-03-04 00:00:00.000000000 Z
11
+ date: 2025-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord