Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / December 2005

Tip: Looking for answers? Try searching our database.

Retrieving timestamp with the Universal Driver

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
klh - 01 Dec 2005 17:54 GMT
I am working with my developer group to switch from the type 2 to the
type 4 (Universal Driver).

Our set up is:
Host Data Base - DB2 z/os v7.1 (mainframe).
Client - DB2 Admin Client V8 FP8 (Windows 2003 advanced server)
The applications are Java based.

They are reporting that when a timestamp column ends with a zero, it
gets truncated when they retrieve it from the database.  For instance,
they have a column defined as a timestamp containing a timestamp of
2005-11-30-15.34.08.110140

When they use rs.getString("colname") or rs.getTimestamp("colname")
they get
2005-11-30 15:34:08.11014 (no zero at the end).

Has anyone else experienced this behavior?

Does a timestamp need to be retrieved using a different method for the
type 4 driver?

Thanks for any help,
klh
Mark A - 01 Dec 2005 23:40 GMT
>I am working with my developer group to switch from the type 2 to the
> type 4 (Universal Driver).
[quoted text clipped - 20 lines]
> Thanks for any help,
> klh

If you are using the type 4 java, I would try the latest version (comes with
FP10). If that does not work, you probably need to open a PMR with IBM
support.
klh - 09 Dec 2005 14:10 GMT
And the answer is ...

I opened up a PMR with IBM.  They showed me where this behavior is the
expected behavior for the JDBC drivers.  Here is a link to where it is
documented.

http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.ud
b.doc/admin/r0008474.htm


It was just a surprise to us that the drivers would display the
timestamps in a different format.  In the end it wasn't a big deal.
The developers just had to reformat the date in some places.

Hopefully this will help someone else as they convert to the Universal
Drivers.

klh
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.