golistic / pxmysql

Go MySQL driver using X Protocol
MIT License
14 stars 0 forks source link

fix: pxmysql.QueryContext() returns no error if no rows #37

Closed geertjanvdk closed 1 year ago

geertjanvdk commented 1 year ago

We make sure that pxmysql.QueryContext() does not return an error when there were no rows in the result set.

We added the missing tests, and also test to make sure pxmysql.QueryRowContext() returns sql.ErrNoRows (because it should).

Fixes #35