Re: column names in select don't exists in insert to

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Johan <johan(dot)stover(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: column names in select don't exists in insert to
Date: 2006-09-21 03:23:58
Message-ID: 20060921032358.GA74340@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Sep 20, 2006 at 02:29:16PM -0700, Johan wrote:
> I encountered a strange problem while trying to solve a bug. I use a
> postgresql 8.x database and a jdbc driver from
> postgresql-8.1dev-400.jdbc3.jar. The following is happening

Any reason you're not using the latest, postgresql-8.1-407.jdbc3.jar?

> The table is created like
> create table test (
> field1 int8 not null,
> field2 int8 not null);
>
> if I do a
>
> select field1 from test;
>
> results are returned normal, no problems at all, but when i do a
>
> insert into test (field2, field1) values (1, 2);
>
> It complains that field1 doesn't exists.

I can't reproduce this problem; could you post a complete test case?
Do you see the problem if you execute the same statements in psql?

--
Michael Fuhr

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Karsten Hilbert 2006-09-21 05:45:40 Re: IF EXISTS
Previous Message Shane Ambler 2006-09-21 03:22:03 Re: postgresql rising