Commit 89709af
authored
fix(model): override $supportsAdvisoryLocks=false on CockroachDB so lockingSpec skips (#2746)
* fix(model): override $supportsAdvisoryLocks=false on CockroachDB so lockingSpec skips
CockroachDBModel extends PostgreSQLModel, which reports
$supportsAdvisoryLocks()=true since pg_advisory_lock is native there.
CockroachDB intentionally omits the primitive — its adapter throws
"CockroachDB does not support advisory locks." from $acquireAdvisoryLock —
but it never overrode the capability flag, so the four lockingSpec
withAdvisoryLock tests bypassed the beforeEach skip-guard added in
#2670 and reported as errors on every engine (lucee6, lucee7, boxlang).
PR #2670's CHANGELOG entry already named CockroachDB in the "skips on"
list, but the override itself was missed. This adds the one-method
override, mirroring how MSSQL/SQLite/etc. each carry their own
$supportsAdvisoryLocks override over Base.cfc's default-false.
Fixes #2743
Signed-off-by: Peter Amiri <peter@alurium.com>
* docs(model): trim redundant forUpdate hint from CockroachDB $supportsAdvisoryLocks docblock
Reviewer A nit on #2746: the final sentence duplicates guidance already on
the adjacent $acquireAdvisoryLock / $releaseAdvisoryLock docblocks. Keep
the comment focused on the WHY (inheritance/capability-flag subtlety).
Signed-off-by: Peter Amiri <peter@alurium.com>
---------
Signed-off-by: Peter Amiri <peter@alurium.com>1 parent cb04f68 commit 89709af
2 files changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
41 | 53 | | |
42 | 54 | | |
43 | 55 | | |
| |||
0 commit comments