We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To Reproduce
Try this:
try (Statement s = connection.createStatement()) { try { s.executeUpdate(""" create table t ( n numeric (10, 5), d decimal (10, 5) ) """); try (ResultSet rs = connection.getMetaData().getColumns(null, null, "t", "%")) { while (rs.next()) { System.out.println(rs.getString("COLUMN_NAME")); System.out.println(rs.getString("TYPE_NAME")); System.out.println(rs.getString("COLUMN_SIZE")); System.out.println(rs.getString("DECIMAL_DIGITS")); System.out.println(); } } } finally { s.executeUpdate("drop table t"); } }
It prints:
n NUMERIC 2000000000 10 d DECIMAL 2000000000 10
If I omit the whitespace in the precision/scale declaration, like this:
create table t ( n numeric (10,5), d decimal (10,5) )
Then, at least the values are parsed, but the result is still incorrect:
n NUMERIC 15 5 d DECIMAL 15 5
Expected behavior
The output should be:
n NUMERIC 10 5 d DECIMAL 10 5
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered:
8455468
No branches or pull requests
To Reproduce
Try this:
It prints:
If I omit the whitespace in the precision/scale declaration, like this:
Then, at least the values are parsed, but the result is still incorrect:
Expected behavior
The output should be:
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: