X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E871E3A5420 for ; Sat, 11 Dec 2004 05:20:24 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 23107-07 for ; Sat, 11 Dec 2004 05:20:17 +0000 (GMT) Received: from sharp.noc24x7.com (unknown [69.56.128.138]) by svr1.postgresql.org (Postfix) with ESMTP id 063423A623E for ; Sat, 11 Dec 2004 05:19:42 +0000 (GMT) Received: from [61.3.110.132] (helo=thenilgiris.com) by sharp.noc24x7.com with esmtpa (Exim 4.43) id 1CczfA-0006Zz-Se for pgsql-sql@postgresql.org; Sat, 11 Dec 2004 10:49:25 +0530 Received: from localhost (localhost [[UNIX: localhost]]) by thenilgiris.com (8.11.2/8.11.2) id iBB50ul19965 for pgsql-sql@postgresql.org; Sat, 11 Dec 2004 10:30:56 +0530 Content-Type: text/plain; charset="iso-8859-1" From: Kenneth Gonsalves To: pgsql-sql@postgresql.org Subject: replacing mysql enum Date: Sat, 11 Dec 2004 10:30:55 +0530 X-Mailer: KMail [version 1.2] MIME-Version: 1.0 Message-Id: <04121110305520.21547@thenilgiris.com> Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sharp.noc24x7.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - thenilgiris.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.882 tagged_above=0 required=5 tests=FORGED_RCVD_HELO, RCVD_IN_BL_SPAMCOP_NET X-Spam-Level: * X-Archive-Number: 200412/51 X-Sequence-Number: 19671 hi, from mysql: field enum('a','b','c') default null, i translated this as: field varchar(2) check (field in (null,'a','b','c')), is it necessary to put the 'null' in the check condition? if not will pg permit you to enter a null value in the field? regards kg