Details
-
Bug
-
Status: Open
-
Trivial
-
Resolution: Unresolved
-
10.4.1.3
-
None
-
Normal
-
Newcomer, Repro attached
-
Embedded/Client difference
Description
Code like the following:
DatabaseMetaData dmd = <a connection>.getMetaData();
ResultSet rs = dmd.getAttributes(null,null,null,null);
ResultSetMetaData rsmd = rs.getMetaData();
int actualCols = rsmd.getColumnCount();
for (int i = 0; i < actualCols; i++)
Will return different values for a number of columns in the resultset for network server/client vs. embedded.
See test fixture DatabaseMetaData.testUnimplementedSQLObjectAttributes().
The difference shows up for: DATA_TYPE, ATTR_SIZE, DECIMAL_DIGITS, NUM_PREC_RADIX, NULLABLE, SQL_DATA_TYPE, SQL_DATETIME_SUB, CHAR_OCTET_LENGTH, ORDINAL_POSITION.
It's unlikely that this would ever cause a problem for a user's application, so marking as trivial.
Attachments
Issue Links
- is part of
-
DERBY-310 Document and/or change Derby client code to match behavior with Embedded driver where possible.
- Closed