Closed abdelaziz-ouhammou closed 1 month ago
I would guess not checking the rows.Err() is the problem. From the docs:
Query sends a query to the server and returns a Rows to read the results. Only errors encountered sending the query and initializing Rows will be returned. Err() on the returned Rows must be checked after the Rows is closed to determine if the query executed successfully.
Thank you very much for your support.
Describe the bug If a user doesn't have select permission on a table. the driver returns an empty result instead of an error
To Reproduce Steps to reproduce the behavior:
postgres
userExpected behavior expected to receive an error.
Actual behavior empty result with no error
Version