Commit 65dd0f7
committed
Add CockroachDB error-based fingerprints (PostgreSQL fork)
CockroachDB is already recognized as a PostgreSQL fork by the active
fingerprint, but data/xml/errors.xml had no passive (error-message)
signatures for it, so error-based detection couldn't flag a CockroachDB
backend the way it does for the existing MySQL forks (MariaDB/TiDB/MemSQL).
Add two CockroachDB-specific error signatures under the PostgreSQL block:
- the location-first syntax error ('at or near "...": syntax error',
distinct from PostgreSQL's 'syntax error at or near ...')
- the go.crdb.dev / github.com/cockroachdb reference link emitted in
CockroachDB error hints
Validated against CockroachDB v26.2 (Docker): htmlParser() resolves these
to PostgreSQL with forkNote='CockroachDB', while genuine PostgreSQL/MySQL
errors and unrelated pages are unaffected (no false attribution). Each
signature carries a CockroachDB-specific token to avoid false positives.
sha256sums.txt regenerated; smoke test passes.1 parent b30c169 commit 65dd0f7
2 files changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
37 | 39 | | |
38 | 40 | | |
39 | 41 | | |
| |||
0 commit comments