diff --git a/packages/driver/src/codecs/registry.ts b/packages/driver/src/codecs/registry.ts index b951f31e0..46eac5fab 100644 --- a/packages/driver/src/codecs/registry.ts +++ b/packages/driver/src/codecs/registry.ts @@ -198,6 +198,7 @@ export class CodecsRegistry { } case CTYPE_RANGE: + case CTYPE_MULTIRANGE: case CTYPE_SCALAR: { frb.discard(2); break; diff --git a/packages/driver/test/client.test.ts b/packages/driver/test/client.test.ts index c3a955f97..2326169e8 100644 --- a/packages/driver/test/client.test.ts +++ b/packages/driver/test/client.test.ts @@ -1372,6 +1372,15 @@ if (getEdgeDBVersion().major >= 4) { ); expect(multiRangeRes).toEqual([expected]); + + // query to make sure we exercise the code path where we re-use the + // multirange codec from the last query + await client.query( + `select { + multirange := >$mr + }`, + { mr: expected } + ); } finally { await client.close(); }