Re: [SQL] Question re: null

From: Sferacarta Software <sferac(at)bo(dot)nettuno(dot)it>
To: pgsql-sql(at)postgresql(dot)org, Colin Dick <cdick(at)mail(dot)ocis(dot)net>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [SQL] Question re: null
Date: 1998-09-23 15:25:52
Message-ID: 1726.980923@bo.nettuno.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-sql

Hello Colin,

martedì, 22 settembre 98, you wrote:

CD> I have written a function that will return an integer based on the length
CD> of a given field defined as text.
CD> It seems that if the given field has not yet been populated (ie: it is
CD> null), my function returns nothing. I have tried expressly sending back a
CD> value as such to no avail:

CD> int isempty(text*)
CD> {
CD> return (100);
CD> }

CD> If the text* is null, it does not return 100 though it does seem to
CD> process the function and does not core dump. (ie: returns blank entries
CD> with the proper number of tuples at the end). Any ideas? Thanks again.

I'm very interesting on this subject too.
Does anybody knows how to solve this question ?
I can't belive that we are the only people having problems
with NULLs. ;)

Jose'

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1998-09-23 16:46:00 Re: [HACKERS] pg_dump, problem with user defined types?
Previous Message rmiranda 1998-09-23 14:45:54 Re: [HACKERS] Transaction system (proposal for 6.5)

Browse pgsql-sql by date

  From Date Subject
Next Message Glenn Sullivan 1998-09-23 15:55:42 Cursors
Previous Message Sferacarta Software 1998-09-23 13:45:53 Re: [SQL] 2 questions.