Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline does not work as expected for some comments #1117

Open
snuyanzin opened this issue Oct 24, 2019 · 0 comments
Open

Multiline does not work as expected for some comments #1117

snuyanzin opened this issue Oct 24, 2019 · 0 comments

Comments

@snuyanzin
Copy link

@snuyanzin snuyanzin commented Oct 24, 2019

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

  • Please provide your OS and version information.
    Ubuntu 19.10
  • Please provide your CLI version.
    v2.1.1
  • What is the output of pip freeze command.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.