jupyter-xeus / xeus-sql

Jupyter kernel for SQL databases
https://xeus-sql.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
165 stars 22 forks source link

postgres first line comment shows no results #63

Closed jameshowison closed 10 months ago

jameshowison commented 2 years ago

It seems that having a -- comment on the first line of a cell causes no result to be displayed by postgres. e.g.,

-- new query
SELECT *
FROM pg_catalog.pg_tables;

Shows no result,. but

SELECT *
FROM pg_catalog.pg_tables;
-- new query

Shows results.

marimeireles commented 2 years ago

This is easy to fix! I'll open a PR... There's so much stuff I want to rewrite in this software though! 😅