#208 PATCH for TIMESTAMPDIFF function which throws casting except

closed-fixed
1
2011-06-18
2009-04-29
Rohit Joshi
No

In RowOutputBase.java:247 Function writeData(): modify as per below. I am not sure we need else part but I have kept it.
CaseTypes.SQL_TIMESTAMP:
Case Types.SQL_TIMESTAMP_WITH_TIME_ZONE:
if(o instanceof java.lang.Long)
writeTimestamp(new TimestampData((java.lang.Long)o), t);
else
writeTimestamp((TimestampData)o, t);
break;

Without this modification, it throws casting exception for java.lang.Long.

You can reproduce by specifying executing TIMESTAMPDIFF(SQL_TSI_SECOND, LOCALTIMESTAMP, LOCALTIMESTAMP) function.

Discussion

  • Fred Toussi

    Fred Toussi - 2009-09-23

    has been fixed

     
  • Fred Toussi

    Fred Toussi - 2009-09-23
    • status: open --> closed-fixed
     
  • Fred Toussi

    Fred Toussi - 2011-06-18
    • priority: 5 --> 1
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks