Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What is the representation in the code of dabase column TIMESTAMP's NULL value? iBatis, AS400  RSS feed

Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I inserted a NULL value in a column of type TIMESTAMP. In the DB it's represented as: '0001-01-01 00:00:00.0'

I have following iBatis mapping for attribute that's used after executing SELECT query:

gives me:
'Sat Jan 01 00:00:00 CET 1'

My aim is to check if there is still NULL in the DB for mentioned column.

This is my suggestion for solving this problem:

Is this solution generic enough (for any database)? Is there any better idea?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!