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

TIMESTAMP value is truncated when return to client

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.3.1.4
    • Fix Version/s: 10.6.1.0
    • Component/s: Network Client
    • Labels:
      None
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached
    • Bug behavior facts:
      Deviation from standard, Embedded/Client difference, Wrong query result

      Description

      In ParameterMappingTest I see the following differences between embedded and client. Client is truncating the TIMESTAMP value. Look for this bug number in the test for reproduction.

      case java.sql.Types.TIMESTAMP:
      if (param == 2)
      if (usingEmbedded())
      assertEquals("2004-03-12 21:14:24.938222433", val.toString());
      else
      assertEquals("2004-03-12 21:14:24.938222", val.toString());
      else if (param == 3)
      if (usingEmbedded())
      assertEquals("2004-04-12 04:25:26.462983731", val.toString());
      else
      assertEquals("2004-04-12 04:25:26.462983", val.toString());
      break;

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Rick Hillegas
                Reporter:
                kmarsden Kathey Marsden
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: