pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Aren Cambre <aren@arencambre.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
Date: Sat, 15 Jan 2011 03:32:05 GMT
Message-ID: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org> (raw)


The following bug has been logged online:

Bug reference:      5839
Logged by:          Aren Cambre
Email address:      aren@arencambre.com
PostgreSQL version: 9.0.2
Operating system:   Windows 7 32 bit
Description:        pgAdmin makes bad query for creating a table when
default value specified
Details: 

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

This is the SQL that's generated:

CREATE TABLE "raw"."TxDPS geocoding"
(
   "HA_Arrest_Key" character varying(18), 
   gid integer, 
   "whichToUse" character varying(20) NOT NULL DEFAULT none, 
    PRIMARY KEY ("HA_Arrest_Key")
) 
WITH (
  OIDS = FALSE
)
;



view thread (5+ messages)  latest in thread

Message-ID: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org>
Permalink:  ../201101150332.p0F3W5B8085636@wwwmaster.postgresql.org/
Also on:    postgresql.org/message-id/201101150332.p0F3W5B8085636@wwwmaster.postgresql.org

 · 

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: aren@arencambre.com
  Subject: Re: BUG #5839: pgAdmin makes bad query for creating a table when default value specified
  In-Reply-To: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org>
  References: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org>

* 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