java.sql2 Minor oversight: Missing TIMESTAMP type

Lance Andersen Lance.Andersen at oracle.com
Wed Oct 4 16:15:40 UTC 2017


Keep in mind that what is in the sandbox is a work in process and should not be considered final.    As Douglas points out,  JDBCType was added more as a convenience to the sql2 package for now.  I also expect the sql2 package name to change but for now allows a means for discussion as we work on the API.


Best
Lance
On Oct 4, 2017, at 11:15 AM, Douglas Surber <douglas.surber at oracle.com> wrote:

> Lukas,
> 
> You are correct; that is an oversight.
> 
> It’s an open question as to whether the new API will reference java.sql.SQLType and java.sql.JDBCType or duplicate them. So far the new ones are identical to the java.sql ones so reuse is possible. As the new API is independent of the old one there is some argument in favor of duplication. But since the duplicates would (so far) be identical there is a good argument for reuse. I would lean toward reuse but the current draft duplicates to emphasize the independence.
> 
> Douglas
> 
> 
>> On Oct 4, 2017, at 3:01 AM, Lukas Eder <lukas.eder at gmail.com> wrote:
>> 
>> Hello,
>> 
>> I'm referring to this version:
>> http://hg.openjdk.java.net/jdk10/sandbox/jdk/file/a31057bda7c5/src/java.sql/share/classes/java/sql2
>> 
>> Which I believe to be the latest version on that branch. The JdbcType enum
>> is missing a TIMESTAMP (without time zone) type as it seems.
>> 
>> Hope this helps,
>> Lukas
> 




Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com






More information about the jdbc-spec-discuss mailing list