Re: documentation

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Maxim Britov <maxim(dot)britov(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: documentation
Date: 2006-11-02 16:35:43
Message-ID: 17469.1162485343@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Maxim Britov <maxim(dot)britov(at)gmail(dot)com> writes:
> maxim=# SELECT version()
> maxim-# SELECT version();
> ERROR: syntax error at or near "SELECT" at character 18
> 2: SELECT version();
> ^

What you typed there was a two-line query equivalent to
SELECT version() SELECT version();
which of course is a syntax error. Notice how the prompt changed ---
that's psql's means of telling you that it's accepting a continuation
line for an incomplete query. The query ends at a semicolumn, not
a newline.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-11-02 16:57:11 Re: BUG #2729: Backslash escaping not working as expected
Previous Message Baudracco Pierre 2006-11-01 23:59:29 BUG #2730: strange query performance !