[Implemented] Test database column for Null value
Posted: Fri May 04, 2012 11:45 am
Implemented as CheckDatabaseNull()
I believe this is still an outstanding issue, so I'm posting as feature request/wish.
Original thread here:- viewtopic.php?f=13&t=34108
There is currently no simple method to test if a database column is set to Null (as distinct from numeric 0 or empty string). It would be very nice if we had something like IsDatabaseColumnNull(#Database,Column) or similar.
For most cases there are acceptable workarounds for this, but still some situations when it is a real problem. Especially where Null value has a different meaning from a zero length string. String types are the most difficult, as workaround for numeric columns is a little ugly but easy. The database design might be fixed because it is used by other non-PB applications. Some other languages do have this test (IsNull, IsDBNull).
Personally I am only interested in SQLite, but I guess it applies to other kinds.
Note, like in the original thread - I'm also not requesting a PB "nullable type", only a way to test a database column.
I believe this is still an outstanding issue, so I'm posting as feature request/wish.
Original thread here:- viewtopic.php?f=13&t=34108
There is currently no simple method to test if a database column is set to Null (as distinct from numeric 0 or empty string). It would be very nice if we had something like IsDatabaseColumnNull(#Database,Column) or similar.
For most cases there are acceptable workarounds for this, but still some situations when it is a real problem. Especially where Null value has a different meaning from a zero length string. String types are the most difficult, as workaround for numeric columns is a little ugly but easy. The database design might be fixed because it is used by other non-PB applications. Some other languages do have this test (IsNull, IsDBNull).
Personally I am only interested in SQLite, but I guess it applies to other kinds.
Note, like in the original thread - I'm also not requesting a PB "nullable type", only a way to test a database column.