activerecord-cockroachdb-adapter 7.2.1 → 7.2.3

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: c28f723090995949b4ca82645717432e09a8d71d9c5e714bea958432af87b0cc
4
- data.tar.gz: 4855cb4a35acad52324f86833777b9b9f0f74d5a0fbade33fad8f0f5c5fb67fa
3
+ metadata.gz: 986b2d4c2759aab6b8bcae1ccaf58421331bb9049721394cd31e232614b05a22
4
+ data.tar.gz: 44f28a2f9fffa398143219695ed56f8f9b25fff97624e4ea390dbe8bcae987bb
5
5
  SHA512:
6
- metadata.gz: 9a75bb056071fc5ced4b3df285a74e42d2c4bbfd4ae34a21aa860702e88e5dae51ede402be1ff24664d1cee95f5d9c182a26106473a486f6b65591212a82a067
7
- data.tar.gz: cb96f815a2d9970ca62006bded80d5d57b5ba6b8ce43be5dae0bfe0d9d610cbe5394d7f321c5605df9bc806fd87fb26105a97c448ba58dd1486528bc3409282f
6
+ metadata.gz: e45d26b18980f9af81f1170cfea00eb94a95853597472b4261b3ff959732e8cc257727d1cbfe1948689a54fc536db1b79f28f6c056bfaade1af681407e4096bf
7
+ data.tar.gz: 8e5a41b5197eda1143bb13cc93408eaadb707eb187ff4140894efba8b545c7a5a8c42ba857c5f42c572604ccb42dc1334fcf97f1a5bd1f543ac0f1941565be5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 7.2.3 - 2026-01-30
4
+
5
+ - Disallow usage of ROLLBACK AND CHAIN syntax, which is not yet supported in CockroachDB ([#397](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/397))
6
+
7
+ ## 7.2.2 - 2025-08-20
8
+
9
+ - Fixed the handling of column comments that end in a single quote ([#384](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/384))
10
+
3
11
  ## 7.2.1 - 2025-03-26
4
12
 
5
13
  - Fix transaction state on rollback ([#364](https://github.com/cockroachdb/activerecord-cockroachdb-adapter/pull/364))
@@ -208,6 +208,11 @@ module ActiveRecord
208
208
  false
209
209
  end
210
210
 
211
+ def supports_restart_db_transaction?
212
+ # Restart -> PG's ROLLBACK AND CHAIN
213
+ false
214
+ end
215
+
211
216
  def supports_deferrable_constraints?
212
217
  # https://go.crdb.dev/issue-v/31632/v23.1
213
218
  false
@@ -407,7 +412,7 @@ module ActiveRecord
407
412
  fields.map do |field|
408
413
  dtype = field[1]
409
414
  field[1] = crdb_fields[field[0]][2].downcase if re.match(dtype)
410
- field[7] = crdb_fields[field[0]][1]&.gsub!(/^\'|\'?$/, '')
415
+ field[7] = crdb_fields[field[0]][1]
411
416
  field[10] = true if crdb_fields[field[0]][3]
412
417
  field
413
418
  end
@@ -438,9 +443,8 @@ module ActiveRecord
438
443
  WHERE c.table_name = #{quote(table)}#{with_schema}
439
444
  SQL
440
445
 
441
- fields.reduce({}) do |a, e|
442
- a[e[0]] = e
443
- a
446
+ fields.to_h do |field|
447
+ [field.first, field]
444
448
  end
445
449
  end
446
450
 
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 = "7.2.1"
18
+ COCKROACH_DB_ADAPTER_VERSION = "7.2.3"
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: 7.2.1
4
+ version: 7.2.3
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-04-25 00:00:00.000000000 Z
11
+ date: 2026-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord