Commit efb4de6
fix(model): skip CockroachDB advisory-lock specs via capability override (#2747)
* fix(model): skip CockroachDB advisory-lock specs via capability override
CockroachDBModel extends PostgreSQLModel, which reports
`$supportsAdvisoryLocks() = true` because Postgres has pg_advisory_lock.
CockroachDB does not, so its $acquireAdvisoryLock / $releaseAdvisoryLock
throw Wheels.AdvisoryLockNotSupported. Without a capability override the
four standalone advisory-lock specs in `lockingSpec.cfc` skipped past
their beforeEach guard and errored on every Cockroach-backed compat-
matrix run (Lucee 6, Lucee 7, BoxLang). Adding the override lets them
skip cleanly, matching the H2 / SQL Server treatment from #2665.
Fixes #2743
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
* docs(model): rework CockroachDB $supportsAdvisoryLocks docblock per review
Reviewer A flagged that the existing wording led with "lets the test
suite skip standalone-lock paths instead of erroring" — framing the
override as a test workaround rather than a correctness fix. Reorder
to lead with the underlying behavior ($acquireAdvisoryLock /
$releaseAdvisoryLock throw Wheels.AdvisoryLockNotSupported), then
explain what consulting the flag enables, then cite the H2 / SQL
Server precedent from #2665.
No functional change.
Signed-off-by: Peter Amiri <peter@alurium.com>
---------
Signed-off-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Peter Amiri <peter@alurium.com>1 parent b6313cc commit efb4de6
2 files changed
Lines changed: 14 additions & 6 deletions
File tree
- vendor/wheels
- databaseAdapters/CockroachDB
- tests/specs/database
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
54 | 61 | | |
55 | 62 | | |
56 | 63 | | |
| |||
0 commit comments