microsoft / vscode-postgresql

PostgreSQL extension for VSCODE
Other
422 stars 53 forks source link

Running a query requires a begin/end block #49

Open Cabeda opened 5 years ago

Cabeda commented 5 years ago

Steps to Reproduce:

  1. Run query 'SELECT * FROM pg_stat_activity;';
  2. Result returns 'cursors can only be used within the transaction that created them. '
  3. Run query BEGIN; SELECT * FROM pg_stat_activity; END;
  4. Query returns the result correctly

Is this the supposed to happen?