mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.43k stars 290 forks source link

Reading records fails #1343

Open GaetanColenoTiime opened 2 weeks ago

GaetanColenoTiime commented 2 weeks ago

Describe the bug When i try to see records of a table, whatever the way, i can't, and here is the error :

[1717968897729] ERROR (TypeError): TypeError: Cannot read properties of undefined (reading 'total') at li. (/home/vscode/.vscode-server/extensions/mtxr.sqltools-driver-pg-0.5.4/out/ls/plugin.js:118:17015) at Generator.next () at a (/home/vscode/.vscode-server/extensions/mtxr.sqltools-driver-pg-0.5.4/out/ls/plugin.js:118:15544) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) [1717968897730] ERROR (ext): ERROR: Execute query error Cannot read properties of undefined (reading 'total'), 'Cannot read properties of undefined (reading 'total')' ns: "error-handler" [1717968897730] ERROR (ext): ERROR: Error while showing table records Cannot read properties of undefined (reading 'total'), {"code":-1,"data":{"driver":"PostgreSQL","driverOptions":{}}} ns: "error-handler"

And a window open with infinite loading screen

To Reproduce Steps to reproduce the behavior:

  1. Go to SQLTools extension tab, on any table you want
  2. Click on show table records
  3. See error

Expected behavior See the actuals records of the table

Screenshots image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.