DATA-DOG / go-sqlmock

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

fix bug/334 when checking empty expectedQuery with actual query #333

Closed sfc-gh-tvidyasankar closed 3 months ago

sfc-gh-tvidyasankar commented 3 months ago

If expected query is empty, it is matching against any string that is in actual and this fix should prevent that

sfc-gh-tvidyasankar commented 3 months ago

@filikos and @JessieAMorris : request your help in reviewing and approving this. We tested locally and it works for us

Thanks in advance for maintaining this repo. We use this a lot and totally appreciate the effort

l3pp4rd commented 3 months ago

makes sense, thanks!