Commit a64705f
* fix(model): resolve cockroachdb bulk-ops and locking test failures (#2106)
Two CockroachDB-only core-test regressions, 10 failures total.
Bug 1 (6 failures in bulkOperationsSpec): CockroachDBModel.$querySetup
unconditionally appended `RETURNING <primaryKey>` to any `INSERT INTO`
statement. bulk.cfc's insertAll/upsertAll invoke $querySetup without
passing $primaryKey (default ""), so emitted SQL ended in a bare
`RETURNING `, which CockroachDB parses as a syntax error near EOF.
Guard the append: skip when $primaryKey is empty/whitespace, and skip
when any SQL chunk contains `ON CONFLICT` (upsert statements). The
single-row INSERT + $identitySelect path on PostgreSQL is unaffected
because it lives on PostgreSQLModel, not CockroachDBModel, and in
the CockroachDB single-row path $primaryKey is populated.
Bug 2 (4 failures in lockingSpec): the spec was missing the
_isCockroachDB skip shim that 8 sibling specs already declare.
CockroachDBModel correctly throws Wheels.AdvisoryLockNotSupported
(parity with Oracle/H2). Added the shim and `if (_isCockroachDB) return;`
to each withAdvisoryLock test. The forUpdate describes are left intact
since CockroachDB supports SELECT ... FOR UPDATE.
SQLite suite: 3250 passed locally. CI compat-matrix against real
CockroachDB will validate the actual fix.
Closes #2106
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* docs(docs): correct claude.md ci soft-fail claim
SOFT_FAIL_DBS in .github/workflows/compat-matrix.yml (lines 389, 519)
is empty (""); CockroachDB is currently hard-gated in CI, not
soft-fail as previously documented. Update the reference paragraph
to reflect reality and explain how to mark a database as soft-fail
in the future.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 2ac13a8 commit a64705f
3 files changed
Lines changed: 23 additions & 2 deletions
File tree
- vendor/wheels
- databaseAdapters/CockroachDB
- tests/specs/model
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
609 | 609 | | |
610 | 610 | | |
611 | 611 | | |
612 | | - | |
| 612 | + | |
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| |||
74 | 79 | | |
75 | 80 | | |
76 | 81 | | |
77 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
78 | 94 | | |
79 | 95 | | |
80 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| 11 | + | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
16 | 18 | | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
41 | 45 | | |
| 46 | + | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
| |||
0 commit comments