Skip to content

fix: correct code for postgres #19

fix: correct code for postgres

fix: correct code for postgres #19

Triggered via push January 20, 2026 16:24
Status Failure
Total duration 24s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

2 errors
build
Process completed with exit code 1.
error: expect(received).toBe(expected): src/drivers/bun-sql.codegen.test.ts#L227
"export async function getThing(sql: SQL, args: GetThingArgs): Promise<GetThingRow | null> { - const rows = await sql.unsafe(getThingQuery, [args.id]) as GetThingRow[]; + const rows = await sql.unsafe(getThingQuery, [args.id]).values() as GetThingRowValues[]; if (rows.length !== 1) { return null; } - return rows[0] ?? null; + const row = rows[0]; + if (!row) { + return null; + } + return { + id: Number(row[0]), + name: row[1] + }; }" - Expected - 2 + Received + 9 at <anonymous> (/home/runner/work/sqlc-gen-typescript/sqlc-gen-typescript/src/drivers/bun-sql.codegen.test.ts:227:23)