You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It returns two rows. If we do the same with sqlfx:
constGetById=sql.resolverId('GetUserById',{id: S.number,result: UserDbo,resultId: (_)=>_.id,run: (ids)=>sql`SELECT * FROM users WHERE id IN ${sql(ids)}`,});constgetUserById=(id: number)=>Effect.gen(function*(_){constuser=yield*_(GetById.execute(id).pipe(Effect.map(Option.map((p)=>newUserDbo(p)))));returnuser;});constmain=Effect.gen(function*(_){const{ getUserById }=yield*_(UserRepro);constallUsers=yield*_(Effect.all(pipe([1,2,1],ReadonlyArray.map((id)=>getUserById(id))),{batching: false}));console.log(allUsers);returnnull;});
Thanks 🤗 Just to be sure, it doesn't fail anymore but returns 3 rows (with duplicate user 1) both with batching on or off. Is this the expected result?
Given the following SQLite table:
With two users:
If we manually run the following query:
It returns two rows. If we do the same with sqlfx:
It returns 3 rows:
If we set
batching
totrue
, it gives the following errorIs it expected? Shouldn't the code return 2 rows in both cases?
Repro
The text was updated successfully, but these errors were encountered: