Trapping exception to dynamically code a work around
Posted: Tue 02 Sep 2014 22:45
I have an application that supports multiple SQLite databases the schema of which is outside of my control.
One of the databases has fields with a definition similar to
create table test (f1 varchar, f2 timestamp)
however that data written to f2 is a float (sqlite allows this) and when I run a simple select query I get an ecception "29222606067.14 julian cannot be represented as a datetime"
How can I trap this situation and deal with it?
One of the databases has fields with a definition similar to
create table test (f1 varchar, f2 timestamp)
however that data written to f2 is a float (sqlite allows this) and when I run a simple select query I get an ecception "29222606067.14 julian cannot be represented as a datetime"
How can I trap this situation and deal with it?