Received: from pop.idx.com.au (pop.idx.com.au [203.14.30.10]) by hub.org (8.10.1/8.10.1) with ESMTP id e8Q1veN90508 for ; Mon, 25 Sep 2000 21:57:40 -0400 (EDT) Received: from freebsd.freebsd.org (idxwc07-18.idx.com.au [203.166.2.18]) by pop.idx.com.au (8.9.3/8.9.3) with SMTP id MAA26425; Tue, 26 Sep 2000 12:57:09 +1100 From: Danny To: "Dominic J. Eidson" , pgsql-hackers@postgresql.org Subject: Re: Re: [HACKERS] RFC - change of behaviour of pg_get_userbyid & pg_get_viewdef? Date: Tue, 26 Sep 2000 23:06:52 +1100 X-Mailer: KMail [version 1.0.21] Content-Type: text/plain Cc: pgsql-general@hub.org, pgsql-sql@postgresql.org References: <3.0.5.32.20000925114803.0283ec10@mail.rhyme.com.au> MIME-Version: 1.0 Message-Id: <00092623084900.00345@freebsd.freebsd.org> Content-Transfer-Encoding: 8bit X-Archive-Number: 200009/733 -Hello - If you want the default value to be "0" the code for that is default = '0' Like so CREATE TABLE Customer (Customer_ID INT Default = '0', I believe this should work. dannyh dannyh@idx.com.au On Mon, 25 Sep 2000, Philip Warner wrote: > At 19:22 24/09/00 -0500, Dominic J. Eidson wrote: > > > >In these cases, is NULL = 0? - What if it returns the UID for "root" > >(typically UID 0)... I think an error message should/would be better in > >this case. > > > > No NULL is NULL, a special value that usually means 'nothing found'. > > > ---------------------------------------------------------------- > Philip Warner | __---_____ > Albatross Consulting Pty. Ltd. |----/ - \ > (A.B.N. 75 008 659 498) | /(@) ______---_ > Tel: (+61) 0500 83 82 81 | _________ \ > Fax: (+61) 0500 83 82 82 | ___________ | > Http://www.rhyme.com.au | / \| > | --________-- > PGP key available upon request, | / > and from pgp5.ai.mit.edu:11371 |/