pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aaron Bono <postgresql@aranya.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Jesper Krogh <jesper@krogh.cc>
Cc: pgsql-sql@postgresql.org
Subject: Re: The empty list?
Date: Thu, 2 Nov 2006 16:43:41 -0600
Message-ID: <bf05e51c0611021443q27b1012bt9236ca595e1f03c2@mail.gmail.com> (raw)
In-Reply-To: <21991.1162506863@sss.pgh.pa.us>
References: <454A654B.2000306@krogh.cc>
	<21991.1162506863@sss.pgh.pa.us>

On 11/2/06, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>
> Jesper Krogh <jesper@krogh.cc> writes:
> > Whereas this gives a syntax error:
>
> > # select 1 in ();
> > ERROR:  syntax error at or near ")" at character 14
> > LINE 1: select 1 in ();
> >                      ^
>
> I think the short answer why the spec disallows this (which it does)
> is that it considers the right-hand side to be a table, and with
> absolutely nothing there, there is no way to impute a rowtype to the
> table.
>
>
So if this syntax violates the specs then the ORM is the what needs to be
change.  The ORM should not attempt to do this.

I have to use DB2 sometimes and it also does not allow empty ().

What ORM are you using that is trying to do this?

-- 
==================================================================
   Aaron Bono
   Aranya Software Technologies, Inc.
   http://www.aranya.com
   http://codeelixir.com
==================================================================

view thread (8+ messages)  latest in thread

Message-ID: <bf05e51c0611021443q27b1012bt9236ca595e1f03c2@mail.gmail.com>
Permalink:  ../bf05e51c0611021443q27b1012bt9236ca595e1f03c2@mail.gmail.com/
Also on:    postgresql.org/message-id/bf05e51c0611021443q27b1012bt9236ca595e1f03c2@mail.gmail.com

 · 

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: postgresql@aranya.com, tgl@sss.pgh.pa.us, jesper@krogh.cc
  Subject: Re: The empty list?
  In-Reply-To: <bf05e51c0611021443q27b1012bt9236ca595e1f03c2@mail.gmail.com>

* 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