Conversion of bogus InvalidCastException into InvalidOperationException
Conversion of bogus InvalidCastException into InvalidOperationException

Some databases allow for operations that will fail in the .NET runtime
with the wrong exception when trying to access the data. This patch fixes
the problem for DateTime.

git-svn-id: 1800f71f313d917366f95485fa960eed04b40598@1254 33146b6e-df29-0410-a1ca-39be37fb9416

Sectoid/dblinq,sharique/dbinq,sharique/dbinq,Sectoid/dblinq