[CONJ-850] MariaDbResultSetMetaData#getPrecision(int) returns wrong length for character data Created: 2021-01-26 Updated: 2021-02-04 Resolved: 2021-01-29 |
|
| Status: | Closed |
| Project: | MariaDB Connector/J |
| Component/s: | JDBC compatibility |
| Affects Version/s: | 2.7.1 |
| Fix Version/s: | 2.7.2 |
| Type: | Bug | Priority: | Major |
| Reporter: | Staffan Hörke | Assignee: | Diego Dupin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Compatibility | ||
| Description |
|
Given the following table definition:
When executing a query and calling resultSet.getMetaData().getPrecision(1) the return value is 400, the length in bytes. java.sql.ResultSetMetaData#getPrecision​(int) says that
The expected result for resultSet.getMetaData().getPrecision(1) in this case is 100. |