Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id D3EAB1337B43 for ; Fri, 14 Jan 2011 23:32:05 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 99341-07 for ; Sat, 15 Jan 2011 03:32:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 3B92E133616B for ; Fri, 14 Jan 2011 23:32:05 -0400 (AST) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p0F3W5dR085637 for ; Sat, 15 Jan 2011 03:32:05 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p0F3W5B8085636; Sat, 15 Jan 2011 03:32:05 GMT (envelope-from www) Date: Sat, 15 Jan 2011 03:32:05 GMT Message-Id: <201101150332.p0F3W5B8085636@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #5839: pgAdmin makes bad query for creating a table when default value specified From: "Aren Cambre" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201101/104 X-Sequence-Number: 29126 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 ) ;