Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 362579 - SQL - timestamp host variable formats as date rather than timestamp following fetch
Summary: SQL - timestamp host variable formats as date rather than timestamp following...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-01 13:17 EDT by Paul Hoffman CLA
Modified: 2017-02-23 14:14 EST (History)
1 user (show)

See Also:


Attachments
Test program (1.64 KB, application/octet-stream)
2011-11-01 13:17 EDT, Paul Hoffman CLA
no flags Details
Lib for database loading (5.38 KB, application/octet-stream)
2011-11-01 13:18 EDT, Paul Hoffman CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Hoffman CLA 2011-11-01 13:17:54 EDT
Created attachment 206279 [details]
Test program

Timestamp host variable formats as date rather than timestamp following fetch.

Test output shown below.   Be sure to download both test case and database load library.

Test output:

Start test to show that timestamp host variables format as date following fetch
default get row, use string parameter to show timestamp 
aTimeStamp = 01/05/1970
aStringTimeStamp = 1970-01-05 00:00:00.000000
default get row, use timestamp parameter to show timestamp 
aTimeStamp = 01/05/1970
aStringTimeStamp = 1970-01-05 00:00:00.0
switch source columns on get, use string parameter to show timestamp 
aTimeStamp = 01/05/1970
aStringTimeStamp = 1970-01-05 00:00:00.000000
switch source columns on get, use timestamp parameter to show timestamp 
aTimeStamp = 01/05/1970
aStringTimeStamp = 1970-01-05 00:00:00.0
Comment 1 Paul Hoffman CLA 2011-11-01 13:18:51 EDT
Created attachment 206280 [details]
Lib for database loading
Comment 2 Joseph Vincens CLA 2011-11-04 15:14:33 EDT
fixed
Comment 3 Paul Hoffman CLA 2011-11-08 15:45:53 EST
verified and closed