Skip to main content

How do I paste a multi-line command in VSQL without the ABORT BEGIN COPY DROP EXPLAIN LOCK war

  • February 21, 2015
  • 5 replies
  • 17 views

Owen_Brown
Whenever I paste a multi-line query into VSQL (Vertica Analytic Database interactive terminal), between each line I get this message:


ABORT           BEGIN           COPY            DROP            EXPLAIN         LOCK            RESET           SAMPLE STORAGE  SET             TRUNCATE        
ALTER           COMMENT         CREATE          END             GRANT           PREPARE         REVOKE          SAVEPOINT       SHOW            UPDATE    

Is there any way I can avoid this?

5 replies

Forum|alt.badge.img+2
  • Participating Frequently
  • February 21, 2015
Hey Owen,

This is an interesting issue, I don't think I have even seen this before! Some questions that will help me troubleshoot:

- What version of Vertica are you using?
- What OS are you running VSQL on?
- What program are you copying the query from?

Can you provide a copy/paste from your VSQL terminal window that exhibits this issue? Do you mind sharing the multi-line query you are pasting into VSQL? I am interested to see if we can reproduce this. 

- Mitch

id10t
Forum|alt.badge.img
  • Participating Frequently
  • February 21, 2015
Hi!


Don't use in TAB("\t") character.

0.jpghttps://www.youtube.com/watch?v=bQrK8GpunXw


id10t
Forum|alt.badge.img
  • Participating Frequently
  • February 21, 2015
answered

Navin_C
Forum|alt.badge.img+2
  • Participating Frequently
  • February 23, 2015
Hi Owen,

The issue is because, you are pasting your code in vsql and this code is containing tab.
Try removing tabs from you SQL and it will run perfectly.

Hope this helps
NC

Owen_Brown
  • Author
  • New Participant
  • February 24, 2015
Okay, there seems to be consensus for the cause of my issue. 
I'll begin using 4 spaces instead of tab. 
Thank you everyone for your quick response.