Fix ident

This commit is contained in:
go-jet 2022-01-20 16:54:18 +01:00
parent 34f84c7170
commit 8eed0e209a
4 changed files with 44 additions and 36 deletions

View file

@ -102,10 +102,11 @@ func TestDeleteWithUsing(t *testing.T) {
table.Rental.
INNER_JOIN(table.Staff, table.Rental.StaffID.EQ(table.Staff.StaffID)),
table.Actor,
).WHERE(
table.Staff.StaffID.EQ(Int(2)).
AND(table.Rental.RentalID.LT(Int(10))),
)
).
WHERE(
table.Staff.StaffID.EQ(Int(2)).
AND(table.Rental.RentalID.LT(Int(10))),
)
testutils.AssertStatementSql(t, stmt, `
DELETE FROM dvds.rental
@ -115,6 +116,5 @@ USING dvds.rental
WHERE (staff.staff_id = ?) AND (rental.rental_id < ?);
`)
_, err := stmt.Exec(tx)
require.NoError(t, err)
testutils.AssertExec(t, stmt, db, 3)
}