Re: column does not exist error - Mailing list pgsql-general

From Scott Marlowe
Subject Re: column does not exist error
Date
Msg-id dcc563d10911180639q46f7dc62n8aaa120d2be58d3b@mail.gmail.com
Whole thread Raw
In response to column does not exist error  (Dave Coventry <dgcoventry@gmail.com>)
List pgsql-general
Type may be a reserved keyword and need double quoting:

where "type"='client';

On Wed, Nov 18, 2009 at 6:23 AM, Dave Coventry <dgcoventry@gmail.com> wrote:
> Tearing my hair out, can anyone see what I'm doing wrong?
>
>  SELECT title FROM node WHERE type=client;
>
> ERROR:  column "client" does not exist
> LINE 1: SELECT title FROM node WHERE type=client;
>
> Yet this works:
>
>  SELECT type FROM node;
>  type
> --------
>  client
>  client
>  client
>  client
>  client
> (5 rows)
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



--
When fascism comes to America, it will be intolerance sold as diversity.

pgsql-general by date:

Previous
From: Ivan Sergio Borgonovo
Date:
Subject: advocating pgsql was:passing parameters to multiple statements
Next
From: Thomas Kellerer
Date:
Subject: Re: passing parameters to multiple statements