Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-889

with client getTimestamp on a TIME column will print the date 1900-01-01 instead of the current date

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.1.2.1, 10.1.3.1, 10.2.1.6
    • 10.3.1.4
    • Network Client
    • None

    Description

      On client getTimestamp on a TIME column will print date 1900-01-01 instead of the current date like the embedded driver.
      To repro run the DERBY-877 repro without specifying a file.encoding

      java TestEnc derbynetclient
      [snip]
      COLUMN 2:TM TIME
      getString: 16:27:35
      getTimeStamp: 1900-01-01 16:27:35.0
      getTime: 16:27:35
      getDate Exception SQLSTATE:null (EXPECTED)

      With Embedded it prints the current date for getTimestamp
      java TestEnc derby

      COLUMN 2:TM TIME
      getString: 16:27:35
      getTimeStamp: 2006-01-28 16:27:35.0
      getTime: 16:27:35
      getDate Exception SQLSTATE:22005 (EXPECTED)

      Attachments

        1. derby-889.diff
          8 kB
          Bryan Pendleton
        2. derby-889-updated-Aug-2006.diff
          8 kB
          Bryan Pendleton
        3. derby-889-withCalTests.diff
          4 kB
          Bryan Pendleton

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            bryanpendleton Bryan Pendleton
            kmarsden Katherine Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment