src/com/wherehoo/WHTimeInterval.java
/**
     *Provides a patch for an apparent bug in SQL driver. 
     *The driver throws an <tt>SQLException</tt> at the attempt to read a timestamp dated before 
     *<tt>1900-01-01 00:00:00</tt> . 
     *Fortunately, the string description of the timestamp is
     *included in error message.
     *The sample message:<br>
     *<center><tt>Bad Timestamp Format at 19 in 1888-10-09 00:02:01</tt>.</center><br> 
     *This method scrapes <tt>"1888-10-09 00:02:01"</tt>, parses the scraped string and generates a proper <tt>Timestamp</tt>.
     *@param sqle <tt>SQLException</tt> throwed by the faulty driver
     *@return <tt>Timestamp</tt> the driver should've retrieved without throwing an exception.
     */
Provides a patch for an apparent bug in SQL driver.
The driver throws an SQLException at the attempt to read a timestamp dated before
1900-01-01 00:00:00 .
Fortunately, the string description of the timestamp is
included in error message.
Provides a patch for an apparent bug in SQL driver . The driver throws an SQLException at the attempt to read a timestamp dated before 1900 - 01 - 01 00 : 00 : 00 . Fortunately the string description of the timestamp is included in error message .
public static Timestamp retrieveTimestamp(SQLException sqle){
	int year,month,day,hour,minute,second;
	long milis;
	String message = sqle.getMessage();
	String ts=message.substring(message.indexOf("in")+2).trim();
	Timestamp t=Timestamp.valueOf(ts);
	return t;
    }
public static Timestamp retrieveTimestamp ( SQLException sqle ) { int year , month , day , hour , minute , second ; long milis ; String message = sqle . getMessage ( ) ; String ts = message . substring ( message . indexOf ( "in" ) + 2 ) . trim ( ) ; Timestamp t = Timestamp . valueOf ( ts ) ; return t ; }
Provides a patch for an apparent bug in SQL driver.
Provides a patch for an apparent bug in SQL driver .