pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: A. Kretschmer <andreas.kretschmer@schollglas.com>
To: pgsql-sql@postgresql.org
Subject: Re: new rule syntax?
Date: Sun, 5 Feb 2006 14:17:31 +0100
Message-ID: <20060205131731.GA3313@webserv.wug-glas.de> (raw)
In-Reply-To: <43E5E8D2.6020502@lake-lotawana.mo.us>
References: <43E5E8D2.6020502@lake-lotawana.mo.us>

am  05.02.2006, um  6:00:18 -0600 mailte A. R. Van Hook folgendes:
> in previous versions (<8.1) the following rule declaration seemed to work 
> fine
>  create rule checks_d0 as
>      on delete to checks
>         do delete from checkitems
>            where ckid = checks.ckid;
> in 8.1.2 I get
> 
> ERROR: missing FROM-clause entry from table "checks"

*untested*:

create rule checks_d0 as
	on delete to checks
		do delete from checkitems, checks
			where checkitems.ckid = checks.ckid;

Read please:
http://www.postgresql.org/docs/8.1/interactive/release-8-1.html

,----
|  add_missing_from is now false by default (Neil)
|
| By default, we now generate an error if a table is used in a query
| without a FROM reference. The old behavior is still available, but the
| parameter must be set to 'true' to obtain it.
`----


HTH, Andreas
-- 
Andreas Kretschmer    (Kontakt: siehe Header)
Heynitz:  035242/47215,      D1: 0160/7141639
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net
 ===    Schollglas Unternehmensgruppe    === 



view thread (5+ messages)  latest in thread

Message-ID: <20060205131731.GA3313@webserv.wug-glas.de>
Permalink:  ../20060205131731.GA3313@webserv.wug-glas.de/
Also on:    postgresql.org/message-id/20060205131731.GA3313@webserv.wug-glas.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: andreas.kretschmer@schollglas.com
  Subject: Re: new rule syntax?
  In-Reply-To: <20060205131731.GA3313@webserv.wug-glas.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox