Skip to content

fix: "operator does not exist" for cross-category comparisons (4.0.1) - #14

Merged
RiyaSharma03 merged 2 commits into
mainfrom
fix/operator-does-not-exist
Oct 7, 2026
Merged

RiyaSharma03 merged 2 commits into
mainfrom
fix/operator-does-not-exist

Conversation

@RiyaSharma03

Copy link
Copy Markdown
Collaborator

uuid_col = text_col was rejected with cannot cast type text to uuid. Postgres says operator does not exist: uuid = text, which is what the agent validator shows the model, and what tells it which side to cast. rapidnative-website's validator test pins that message, so it fails on 4.0.0.

  • Comparisons between two typed operands from different type categories throw Postgres' 42883 operator does not exist: <left> <op> <right>, with types spelled as Postgres spells them (boolean, double precision, timestamp with time zone).
  • Same for x IN (select col ...).
  • Only the message changes: these were already rejected.

Checked:

  • bun test: 1332 pass, 0 fail (new test in corpus-parity.spec.ts)
  • rapidnative-website validator (npm run test:db-tools) against this build: 116/116, vs 115/116 on 4.0.0
  • 40 production projects run through the website's db tools on PGlite and on this build: 0 differences (migrations, seeds, catalogue reads, RLS counts as anon/demo/stranger, lints, generated types, reject/accept probes)

Proposed release: 4.0.1.

🤖 Generated with Claude Code

RiyaSharma03 and others added 2 commits October 7, 2026 15:52
`uuid_col = text_col` was rejected with "cannot cast type text to uuid";
postgres says "operator does not exist: uuid = text", which is what the
agent validator shows the model and what tells it which side to cast.
Types are spelled as postgres spells them (boolean, double precision,
timestamp with time zone). Same for x IN (select col ...).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
@RiyaSharma03 RiyaSharma03 changed the title fix: "operator does not exist" for comparisons across type categories fix: "operator does not exist" for cross-category comparisons (4.0.1) Oct 7, 2026
@RiyaSharma03
RiyaSharma03 merged commit 4860b60 into main Oct 7, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant