danvergara / dblab

The database client every command line junkie deserves.
MIT License
2.35k stars 62 forks source link

mishandled expected error #227

Closed ThiagoMowszet closed 2 months ago

ThiagoMowszet commented 2 months ago

Description

When a user with restricted access tries to make a select, it breaks and this message appears:

~ dblab --config --cfg-name "occ dev" Error: mssql: The SELECT permission was denied on the column 'LocationId' of the object 'Resumes', database 'occprod', schema 'dbo'

Behaviour

Currently, if you execute an incorrect query that you entered in the text box, instead of a result set, an error is printed in the result set window. However, if something goes wrong when selecting a table from the table list, the application crashes with an error message.

Screenshots

Example of behaviour expected image