Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 294101337B3E for ; Fri, 14 Jan 2011 23:51:57 -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 06765-05 for ; Sat, 15 Jan 2011 03:51:50 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C6FAA133616B for ; Fri, 14 Jan 2011 23:51:49 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p0F3pleU017702; Fri, 14 Jan 2011 22:51:47 -0500 (EST) To: "Aren Cambre" cc: pgsql-bugs@postgresql.org 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> Comments: In-reply-to "Aren Cambre" message dated "Sat, 15 Jan 2011 03:32:05 +0000" Date: Fri, 14 Jan 2011 22:51:47 -0500 Message-ID: <17701.1295063507@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201101/105 X-Sequence-Number: 29127 "Aren Cambre" 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