Skip to content

feat: CockroachDB RETURNING clause identity select and adapter tests#1993

Merged
bpamiri merged 2 commits into
developfrom
peter/cockroachdb-tests-and-returning
Mar 26, 2026
Merged

feat: CockroachDB RETURNING clause identity select and adapter tests#1993
bpamiri merged 2 commits into
developfrom
peter/cockroachdb-tests-and-returning

Conversation

@bpamiri
Copy link
Copy Markdown
Collaborator

@bpamiri bpamiri commented Mar 26, 2026

Summary

  • Replace pg_get_serial_sequence()/currval() fallback in CockroachDBModel with a RETURNING clause approach via $querySetup() — works reliably with CockroachDB's unique_rowid() default keys
  • Add CockroachDBUnitSpec.cfc and CockroachDBIntegrationSpec.cfc test specs (not previously on develop)
  • Fix migrator addPrimaryKeyOptions regex to match both INT and INTEGER
  • Add ?sslmode=disable to CockroachDB test datasources in all 8 CFConfig.json files

Test plan

  • Lucee 6 / H2: 2268 pass, 0 fail, 0 error
  • Lucee 7 / H2: 2268 pass, 0 fail, 0 error
  • CI matrix (Adobe, BoxLang engines)

🤖 Generated with Claude Code

…apter tests

Replace the pg_get_serial_sequence/currval fallback with a RETURNING clause
approach that works reliably with CockroachDB's unique_rowid() default keys.
Add unit and integration test specs, fix migrator regex to match INTEGER,
and add ?sslmode=disable to CockroachDB test datasources.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Wheels Test Matrix

Engine MySQL PostgreSQL SQL Server H2 CockroachDB Oracle SQLite
lucee6 ❌ 69
lucee7 ❌ 69
adobe2023 --
adobe2025 --
boxlang -- ❌ 78

Results for commit 628c348.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 26, 2026

Wheels Test Results

    32 files  ±    0   3 360 suites  +390   14m 48s ⏱️ + 2m 36s
66 504 tests +7 158  66 007 ✅ +6 915  290 💤 +36  84 ❌ +84  123 🔥 +123 
68 424 runs  +7 350  67 918 ✅ +7 098  290 💤 +36  93 ❌ +93  123 🔥 +123 

For more details on these failures and errors, see this check.

Results for commit be109ef. ± Comparison against base commit 4136bc2.

♻️ This comment has been updated with latest results.

The commitlint job uses `npm ci` which requires a lockfile, but
package-lock.json was gitignored. Remove it from .gitignore and
commit the generated lockfile.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Mar 26, 2026
@bpamiri
Copy link
Copy Markdown
Collaborator Author

bpamiri commented Mar 26, 2026

CockroachDB soft-fail test failures (84 fail + 123 error) are pre-existing — they affect the core test suite running against CockroachDB (UPDATE SQL generation, boolean coercion, populate.cfm table creation). Full CockroachDB compatibility will be addressed in a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant