DATA-DOG / go-sqlmock

Sql mock driver for golang to test database interactions
Other
5.95k stars 404 forks source link

When expectedSQL is empty it is matching with any query #334

Closed sfc-gh-tvidyasankar closed 3 months ago

sfc-gh-tvidyasankar commented 3 months ago

Hi there,

When expectedSQL is empty it is matching with any query . For instance, lets say

actualSQL is "select * from foo" and expectedSQL is "", mock returns the rows successfully 

Operating system and Go Version

1.20.1

Issue

Reproduction steps

Expected Result

Actual Result

l3pp4rd commented 3 months ago

closed by #333