pgcli
pgcli copied to clipboard
Multiline does not work as expected for some comments
Description
As I understand the issue is present for the queries with one-line comment ending with ; or similar C-style comments
For example I want to type a query in multiline mode
select -- this is my query;
2;
or
select /* this is my query;
*/ 2;
and pgcli does not allow me to continue with the second line, instead it executes only the first line with error in case C-style comment
unterminated /* comment at or near "/* this is my query"
LINE 1: select /* this is my query
^
Your environment
- [x] Please provide your OS and version information. Ubuntu 19.10
- [x] Please provide your CLI version. v2.1.1
- [x] What is the output of
pip freezecommand.
arandr==0.1.9
asn1crypto==0.24.0
backports.functools-lru-cache==1.5
beautifulsoup4==4.7.1
bs4==0.0.1
certifi==2019.6.16
click==6.7
configparser==3.5.0b2
cryptography==2.3
entrypoints==0.3
enum34==1.1.6
fuzzyfinder==2.1.0
httplib2==0.13.0
idna==2.6
ipaddress==1.0.17
keyring==17.1.1
keyrings.alt==3.1.1
kube-shell==0.0.23
kubernetes==2.0.0
lxml==4.3.3
oauth2client==4.1.3
prompt-toolkit==1.0.16
pyasn1==0.4.5
pyasn1-modules==0.2.5
pycairo==1.16.2
pycrypto==2.6.1
Pygments==2.4.2
PyGObject==3.32.0
python-dateutil==2.8.0
pyxdg==0.25
PyYAML==5.1.1
rsa==4.0
SecretStorage==2.3.1
six==1.12.0
snxvpn==1.2
soupsieve==1.9
urllib3==1.25.3
wcwidth==0.1.7
websocket-client==0.56.0
I am also facing the same problem.