Re: How can this be legal syntax - Mailing list pgsql-sql

From Alvaro Herrera
Subject Re: How can this be legal syntax
Date
Msg-id 20081216170543.GN4741@alvh.no-ip.org
Whole thread Raw
In response to How can this be legal syntax  ("Asko Oja" <ascoja@gmail.com>)
Responses Re: How can this be legal syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
Asko Oja escribió:
> I was quite amazed to find that this piece of code actually works while
> reviewing code.
> I would prefer if it gave an error :)

Yeah, me too.  The functions posted by Josh Drake yesterday about
constraint exclusion had something like

select * from into temp table ...;
(temp is a declared variable name).

Nasty.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support


pgsql-sql by date:

Previous
From: "Asko Oja"
Date:
Subject: How can this be legal syntax
Next
From: Tom Lane
Date:
Subject: Re: How can this be legal syntax