From 911cab333b3364a0e04888a9560fcb1c70721dfb Mon Sep 17 00:00:00 2001 From: go-jet Date: Thu, 20 Jan 2022 17:06:03 +0100 Subject: [PATCH] Fix TestDeleteWithUsing test. --- tests/mysql/delete_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/mysql/delete_test.go b/tests/mysql/delete_test.go index be2c144..31c2579 100644 --- a/tests/mysql/delete_test.go +++ b/tests/mysql/delete_test.go @@ -104,8 +104,8 @@ func TestDeleteWithUsing(t *testing.T) { table.Actor, ). WHERE( - table.Staff.StaffID.EQ(Int(2)). - AND(table.Rental.RentalID.LT(Int(10))), + table.Staff.StaffID.NOT_EQ(Int(2)). + AND(table.Rental.RentalID.LT(Int(100))), ) testutils.AssertStatementSql(t, stmt, ` @@ -113,8 +113,8 @@ DELETE FROM dvds.rental USING dvds.rental INNER JOIN dvds.staff ON (rental.staff_id = staff.staff_id), dvds.actor -WHERE (staff.staff_id = ?) AND (rental.rental_id < ?); +WHERE (staff.staff_id != ?) AND (rental.rental_id < ?); `) - testutils.AssertExec(t, stmt, db, 3) + testutils.AssertExec(t, stmt, tx, 42) }