@itwin/core-backend 5.13.0-dev.10 → 5.13.0-dev.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -151,7 +151,7 @@ describe("QueryReaders - createQueryReader() and withQueryReader() api tests", (
151
151
  __disposeResources(env_2);
152
152
  }
153
153
  });
154
- it("bindIdSet not working with integer Ids", async () => {
154
+ it("bindIdSet throws on invalid integer Ids", () => {
155
155
  const env_3 = { stack: [], error: void 0, hasError: false };
156
156
  try {
157
157
  const ecdb = __addDisposableResource(env_3, ECDbTestHelper.createECDb(outDir, "test.ecdb", `<ECSchema schemaName="Test" alias="ts" version="01.00.00" xmlns="http://www.bentley.com/schemas/Bentley.ECXML.3.2">
@@ -162,21 +162,7 @@ describe("QueryReaders - createQueryReader() and withQueryReader() api tests", (
162
162
  assert.isTrue(ecdb.isOpen);
163
163
  ecdb.saveChanges();
164
164
  const params = new QueryBinder();
165
- params.bindIdSet(1, ["50"]);
166
- const optionBuilder = new QueryOptionsBuilder();
167
- // eslint-disable-next-line @typescript-eslint/no-deprecated
168
- optionBuilder.setRowFormat(QueryRowFormat.UseJsPropertyNames);
169
- const readerCallback = async (readerObj) => {
170
- const rows = await readerObj.toArray();
171
- assert.equal(rows.length, 0);
172
- };
173
- const syncreaderCallback = (syncReader) => {
174
- const rows = syncReader.toArray();
175
- assert.equal(rows.length, 0);
176
- };
177
- ecdb.withQueryReader("SELECT ECInstanceId, Name FROM meta.ECClassDef WHERE InVirtualSet(?, ECInstanceId)", syncreaderCallback, params, optionBuilder.getOptions());
178
- const reader = ecdb.createQueryReader("SELECT ECInstanceId, Name FROM meta.ECClassDef WHERE InVirtualSet(?, ECInstanceId)", params, optionBuilder.getOptions());
179
- await readerCallback(reader);
165
+ expect(() => params.bindIdSet(1, ["50"])).to.throw(/is not a valid Id64String/);
180
166
  }
181
167
  catch (e_3) {
182
168
  env_3.error = e_3;