Skip to content

Commit

Permalink
Fixed SQL test
Browse files Browse the repository at this point in the history
In #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 <ivan@synadia.com>
  • Loading branch information
kozlovic committed Dec 20, 2019
1 parent 73a47ce commit 964ec97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stores/sqlstore_test.go
Expand Up @@ -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)"
}
Expand Down

0 comments on commit 964ec97

Please sign in to comment.