Re: Problems With VIEWS

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Jeanna Geier <jgeier(at)apt-cafm(dot)com>, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Problems With VIEWS
Date: 2007-01-10 23:04:05
Message-ID: 62593.72984.qm@web31801.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> 2007-01-10 16:45:33 ERROR: cannot insert into a view
> 2007-01-10 16:45:33 HINT: You need an unconditional ON INSERT DO INSTEAD
> rule.

Also, I see you have this field in your insert rule:

new.upgrade_date

but I see so upgrade_date in you view's definition. What exactly do you intend to be inserted.
All of the New.[field_names] in the insert statement must be view fieldnames not table fieldnames.

Regards,
Richard Broersma Jr.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Chad Wagner 2007-01-10 23:11:51 Re: How does one perform a case-insenstive query on test or char fields
Previous Message Jeanna Geier 2007-01-10 22:52:18 Re: Problems With VIEWS