Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D0379476FA2 for ; Thu, 19 Dec 2002 10:21:13 -0500 (EST) Received: from bast.unixathome.org (bast.unixathome.org [66.11.174.150]) by postgresql.org (Postfix) with ESMTP id E4AE9476851 for ; Thu, 19 Dec 2002 10:19:49 -0500 (EST) Received: from wocker (wocker.unixathome.org [192.168.0.99]) by bast.unixathome.org (Postfix) with ESMTP id 08DE03F4E for ; Thu, 19 Dec 2002 10:19:54 -0500 (EST) From: "Dan Langille" To: pgsql-admin@postgresql.org Date: Thu, 19 Dec 2002 10:19:53 -0500 MIME-Version: 1.0 Subject: Re: Sybase PowerDesigner Data Architect Message-ID: <3E019D49.15900.4E4F3FB2@localhost> In-reply-to: <3E0189F9.7953.4E03CCBC@localhost> X-mailer: Pegasus Mail for Windows (v4.02a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/244 X-Sequence-Number: 6739 On 19 Dec 2002 at 8:57, Dan Langille wrote: > The two remaining problems are: > > - default values are always enclosed in single quotes (') which is > fine for character fields but not for anything else. > > e.g > > create table security_notice > ( > id T_ID not null, > date_added timestamp not null > default 'current_timestamp', > > - remove key name from foreign keys > > alter table element_pathnames > add foreign key FK_ELEMENT__REF_11730_ELEMENT (element_id) > references element (id) on update cascade on delete cascade; > > Has anyone already done this? Here's the diff which solves the above problems. $ diff sqlany55.def sqlany55.def-original 56c56 < Quote = --- > Quote = ' 122c122 < EnableFkeyName = NO --- > EnableFkeyName = YES 227c227 < EnableAscDesc = NO --- > EnableAscDesc = YES -- Dan Langille : http://www.langille.org/