Re: BUG #1293: INSERT INTO test (f1.f2) VALUES (1, 2) - wrong diagnostic

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Alexander Kirpa" <postgres(at)bilteks(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1293: INSERT INTO test (f1.f2) VALUES (1, 2) - wrong diagnostic
Date: 2004-10-25 02:39:45
Message-ID: 8488.1098671985@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"PostgreSQL Bugs List" <pgsql-bugs(at)postgresql(dot)org> writes:
> create table test(f1 int4,f2 int4);
> insert into test (f1.f2) values (1,2);
> ERROR: cannot assign to a column of type integer because it is not a
> composite type

This diagnostic is not wrong. It might be a tad unhelpful, but I don't
think it's within the province of the parser to intuit that you meant to
type a comma instead of a period.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-10-25 20:56:13 BUG #1294: Random errors (failed connection)
Previous Message PostgreSQL Bugs List 2004-10-25 02:25:22 BUG #1293: INSERT INTO test (f1.f2) VALUES (1,2) - wrong diagnostic