From: | Christof Petig <christof(dot)petig(at)wtal(dot)de> |
---|---|
To: | Michael Meskes <meskes(at)postgresql(dot)org> |
Cc: | PostgreSQL Hacker <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: embedded sql with indicators in other DBs |
Date: | 2000-10-25 14:34:34 |
Message-ID: | 39F6EF7A.CB63E559@wtal.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Michael Meskes wrote:
> What do other DBs do with their output variables if there is an embedded SQL
> query resulting in a NULL return value? What I mean is:
>
> exec sql select text into :txt:ind from ...
>
> If text is NULL, ind will be set, but does txt change?
>
> I was just told Informix blanks txt.
Adabas D does not touch txt.
So you might set txt to a reasonable value in case of NULL, or hold the value
in txt of a previous sql statement. On the other hand if you forget to
initialize txt, Informix protects you from yourself.
At least the standard (sql94-bindings-3 clause 7.1) does not mention to change
the value of the variable in null case. Looks like undefined.
I'm undecided. Not touching it looks more right to me but it might break
existing applications.
Christof
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2000-10-25 14:40:02 | Re: --with-perl=/path/to/prefered/perl? |
Previous Message | Vince Vielhaber | 2000-10-25 14:06:09 | Re: Mailing list archives available? |