Fix ident
This commit is contained in:
parent
34f84c7170
commit
8eed0e209a
4 changed files with 44 additions and 36 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue