Re:Not null column contains null
Quote
> could anyone picture a situation where a NOT NULL column contains a
NULL
> value (that's what we have)?. Could it be a corrupted DB?
What makes you think it has a NULL in it?
What client tool are you using to determine that?
Have you done a test to isolate out any client using a statement such as:
SELECT COUNT( * )
FROM TABLE
WHERE COLUMN IS NULL
to see if there was anything there?
If you are using the API directly one thing you need to be aware of is how
the SQLVAR buffers are populated by the API. If a column is a NOT NULL
column you have to massage the SQLInd null indicator since it simply doesn't
touch it upon calling isc_dsql_fetch. Which could appear to make a column
NULL if you are not aware of this.
Perhaps you are using an ODBC driver that didn't properly take this into
account.
HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com