pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Aren Cambre <aren@arencambre.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Date: Fri, 14 Jan 2011 22:51:47 -0500
Message-ID: <17701.1295063507@sss.pgh.pa.us> (raw)
In-Reply-To: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org>
References: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org>

"Aren Cambre" <aren@arencambre.com> writes:
> Using pgAdmin 1.12.2, I just tried to create a table with a character
> varying(18) column. I put "none" (without the quotes) in the "Default value"
> field for that column.

> When I press OK to create the table, I get a dialog saying:
>   An error has occurred:
>   ERROR: column "none" does not exist

Well, yeah, that's what you'll get.  I don't see a bug here.
If you want the literal string 'none' as default, you should put quotes
around it.  If you don't want a default, you shouldn't put anything
there.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <17701.1295063507@sss.pgh.pa.us>
Permalink:  ../17701.1295063507@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17701.1295063507@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, aren@arencambre.com
  Subject: Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
  In-Reply-To: <17701.1295063507@sss.pgh.pa.us>
  References: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org> <17701.1295063507@sss.pgh.pa.us>

* 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