MattStan
4/10/2002 6:24:00 PM
Hi,
I know similar posts have been made but not AFAIK concerning PostgreSQL.
Using odbc.net with the PostgreSQL ODBC driver and database there seems
to be both the problem concerning empty string values in table columns
and the problem with null values.
If a varchar or text type was inserted into a table with "" (the empty
string) the runtime error is this:
"Unhandled Exception: Microsoft.Data.Odbc.OdbcException: NO_DATA"
But if the varchar or text type was inserted with NULL then the error
is:
"Unhandled Exception: System.InvalidCastException: Specified cast is not
valid."
Does anyone know the best workaround for this problem?
I know Microsoft are trying to resolve this problem but is there a time
scale on this?
Thanks and regards,
Matthew