dbTalk Databases Forums  

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

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #1293: INSERT INTO test (f1.f2) VALUES (1,2) - wrong diagnostic in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
PostgreSQL Bugs List
 
Posts: n/a

Default [BUGS] BUG #1293: INSERT INTO test (f1.f2) VALUES (1,2) - wrong diagnostic - 10-24-2004 , 09:41 PM







The following bug has been logged online:

Bug reference: 1293
Logged by: Alexander Kirpa

Email address: postgres (AT) bilteks (DOT) com

PostgreSQL version: 8.0 Beta

Operating system: FreeBSD

Description: INSERT INTO test (f1.f2) VALUES (1,2) - wrong diagnostic

Details:

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
select f1.f2 from test;
relation "f1" does not exist

Wrong diagnostic for INSERT


---------------------------(end of broadcast)---------------------------
TIP 8: explain analyze is your friend

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] BUG #1293: INSERT INTO test (f1.f2) VALUES (1,2) - wrong diagnostic - 10-24-2004 , 09:42 PM






"PostgreSQL Bugs List" <pgsql-bugs (AT) postgresql (DOT) org> writes:
Quote:
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

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
joining column's datatypes do not match


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.