Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6486236

JDBC Time escape sequence needs to document that date portion should be equivalent to Jan 1 1970

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • cts_5.0
    • core-libs
    • None
    • generic
    • generic

      JDBC spec needs to clarify the behavior of using the Time escape sequence for the date portion when used with a column that includes date such as datetime or timestamp.

      It should follow the behavior of the Time class where it is set to epoch Jan 1 1970
      The javadocs for Statement.setQueryTimeout needs updated:

      > Statement#setQueryTimeout:
      > > void setQueryTimeout(int seconds)
      > > throws SQLException
      > >
      > > Sets the number of seconds the driver will wait for a Statement object
      > > to execute to the given number of seconds. If the limit is exceeded,
      > > an SQLException is thrown.
      > > ************
           The above should be changed to be SQLTimeoutException?

            lancea Lance Andersen
            lancea Lance Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: