Subject | Re: [firebird-support] Embedded SQL and NULLs |
---|---|
Author | Ann W. Harrison |
Post date | 2009-11-11T18:00:51Z |
sboydlns wrote:
may change arbitrarily in the future. Or, horrors, you
may find that you've got data where zero or an empty
string is a legitimate value.
Indicator variables exist for a purpose. Use them.
Good luck,
Ann
> I was wondering if there was some way to handle columnsProbably, but that's an artifact of implementation that
> with NULL values without using indicator variables. If I
> were to initialize all host variables to some sensible
> value, like zero for numeric fields and an empty string
> for character fields, would those values be preserved by
> the FETCH. That is, would NULL columns returned by the
> FETCH leave the affected host variables unchanged?
may change arbitrarily in the future. Or, horrors, you
may find that you've got data where zero or an empty
string is a legitimate value.
Indicator variables exist for a purpose. Use them.
Good luck,
Ann