Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Aren Cambre" <aren(at)arencambre(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Date: 2011-01-15 03:51:47
Message-ID: 17701.1295063507@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Aren Cambre" <aren(at)arencambre(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Aren Cambre 2011-01-15 04:12:01 Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Previous Message Aren Cambre 2011-01-15 03:32:05 BUG #5839: pgAdmin makes bad query for creating a table when default value specified