Skip to content

Commit 8920929

Browse files
committed
test(rest): assert the presence clause in two pieces, clear of the live-db-isolation USE needle
Claude-Session: https://claude.ai/code/session_017xfMoEjKUuSh2xYB8sCozp Co-authored-by: Claude <noreply@anthropic.com>
1 parent d352319 commit 8920929

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/rest/src/aggregation-filter-json-column-refusal.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,11 @@ for (const cell of CELLS) {
255255
expect(twin.json.error).toBe(WITHHELD_MESSAGE);
256256
expect(agg.json.error).toContain('{ "FIELD": { "$contains": "a" } }');
257257
expect(agg.json.error).toContain('{ "$or": [{ "FIELD": { "$contains": "a" } }, { "FIELD": { "$contains": "b" } }] }');
258-
expect(agg.json.error).toContain('For no value, use "$null" or "$empty".');
258+
// The no-value spelling a null comparand needs, in two pieces: this file
259+
// is in `check:live-db-isolation`'s scan, which reads a MySQL USE
260+
// statement in the verb followed by a quoted operand.
261+
expect(agg.json.error).toContain('For no value,');
262+
expect(agg.json.error).toContain('"$null" or "$empty".');
259263
expect(agg.json.error).toContain('withheld from the message; the full diagnostic is in the server log.');
260264
expect(agg.json.error).not.toContain(`"${field}"`);
261265
// The field and the operator are in the server log, not the response.

0 commit comments

Comments
 (0)