From: | Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com> |
---|---|
To: | Theodore Petrosky <tedpet5(at)yahoo(dot)com> |
Cc: | "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org> |
Subject: | Re: op error no question, but no error warning |
Date: | 2003-03-12 14:50:25 |
Message-ID: | 20030312064901.T52741-100000@megazone23.bigpanda.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
On Wed, 12 Mar 2003, Theodore Petrosky wrote:
> This isn't all my problem...
>
> I was going through tutorials, and I typed in the
> example for inheritance. I had a typo that did not
> throw an error and I think it should.
>
> i created the tables from the cities, capitals example
> and then tried to insert.
>
> test-db=# insert into capitals (name, population,
> state) values ('Trenton', '543565, 'New Jersey');
>
> my typo is the extra single quote before the number. I
> received no error message, but of course there was no
> insert. I would have assumed that the trailing ';'
> would have terminated the insert and if there is an
> error, it should have said so.
That ; is inside a single quoted string, it's not an
end of statement character, it's taken as a literal ;.
The prompt should change to something like
test-db'# to let you know that you're inside a literal.
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2003-03-12 16:54:58 | Re: Aliased SubSelect in HAVING clause bug -- in progress? |
Previous Message | Stephan Szabo | 2003-03-12 14:48:39 | Re: RI Bug In Inherited Table |