diff --git a/integration-tests/lts/primitives.test.ts b/integration-tests/lts/primitives.test.ts index 9f3edcc08..85b87b2b0 100644 --- a/integration-tests/lts/primitives.test.ts +++ b/integration-tests/lts/primitives.test.ts @@ -66,7 +66,7 @@ describe("primitives", () => { ); assert.equal( e.std.range(upperRange).toEdgeQL(), - `std::range({}, 8, inc_lower := true, inc_upper := false)` + `std::range({}, 8, inc_lower := false, inc_upper := false)` ); assert.equal( e.std.range(dateRange).toEdgeQL(), diff --git a/packages/driver/src/datatypes/range.ts b/packages/driver/src/datatypes/range.ts index 8592c6ed4..df6be3f75 100644 --- a/packages/driver/src/datatypes/range.ts +++ b/packages/driver/src/datatypes/range.ts @@ -26,7 +26,7 @@ export class Range< constructor( private readonly _lower: T | null, private readonly _upper: T | null, - private readonly _incLower: boolean = true, + private readonly _incLower: boolean = _lower != null, private readonly _incUpper: boolean = false ) {}