Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
2.7.8, 3.1.2
-
None
-
Fedora Linux, OpenJDK 11 (java-11-openjdk-11.0.17.0.8-1.fc37.x86_64)
Description
When retrieving type metadata from the database using getTypeInfo(), the boolean value of the UNSIGNED_ATTRIBUTE column is always true.
Sample code to reproduce the issue (with database running on localhost):
Connection con = DriverManager.getConnection("jdbc:mariadb://localhost:3306/database?user=user&password=password"); |
ResultSet typeInfo = con.getMetaData().getTypeInfo();
|
while(typeInfo.next()) { |
System.out.println(typeInfo.getString("TYPE_NAME") + ": " + typeInfo.getBoolean("UNSIGNED_ATTRIBUTE")); |
}
|
This outputs the type names of all data types and the UNSIGNED_ATTRIBUTE being true for all of them, regardless of them having the UNSIGNED attribute or not.