From 964ec97a1f70d253cbdf19a7dfbc903b3d045f48 Mon Sep 17 00:00:00 2001 From: Ivan Kozlovic Date: Fri, 20 Dec 2019 13:37:19 -0700 Subject: [PATCH] Fixed SQL test In https://github.com/nats-io/nats-streaming-server/pull/538 we escaped `row` in the SQL code, but then this test does not have it escaped. I recently updated my local MySQL server and got the test failure. Signed-off-by: Ivan Kozlovic --- stores/sqlstore_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stores/sqlstore_test.go b/stores/sqlstore_test.go index 214301db..546ff64a 100644 --- a/stores/sqlstore_test.go +++ b/stores/sqlstore_test.go @@ -1211,7 +1211,7 @@ func TestSQLSubStoreCachingAndRecovery(t *testing.T) { acks := make(map[uint64]struct{}) acks[2] = struct{}{} ackBytes, _ := sqlEncodeSeqs(acks, func(_ uint64) {}) - stmt := "INSERT INTO SubsPending (subid, row, lastsent, pending, acks) VALUES (?, ?, ?, ?, ?)" + stmt := "INSERT INTO SubsPending (subid, `row`, lastsent, pending, acks) VALUES (?, ?, ?, ?, ?)" if testSQLDriver == driverPostgres { stmt = "INSERT INTO SubsPending (subid, row, lastsent, pending, acks) VALUES ($1, $2, $3, $4, $5)" }