Skip to content

[BUG] The JDBC driver reports incorrect precision of TIMESTAMP #19

@Yury-Fridlyand

Description

@Yury-Fridlyand

What is the bug?

JDBC driver reports the precision of TIMESTAMP columns as 24 - which is incorrect

How can one reproduce the bug?

ResultSetMetaData::getPrecision
https://docs.oracle.com/javase/8/docs/api/java/sql/ResultSetMetaData.html#getPrecision-int-

What is the expected behavior?

For datetime datatypes, this is the length in characters of the String representation

For TIMESTAMP and DATETIME it should be 19 for 0 FSP and up to 29 for 9 FSP (fractional second digits).

What is your host/environment?

JDBC: 1.1.0.1

Do you have any additional context?

Opened on behalf of @kylepbit

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions