Bryan Pendleton <[email protected]> writes: >> ResultSet rs = s.executeQuery("values upper('Straße')"); >> >> So it seems the value is returned correctly, but the meta-data is wrong >> (STRASSE is 7 characters long, not 6). ij uses the meta-data to >> determine how much space each column should have. > > 6 *characters* long, but 7 *bytes* long?
Nope, "STRASSE" is both 7 characters and 7 bytes. :) S T R A S S E 1 2 3 4 5 6 7 "Straße" is 6 characters long (and 7 bytes in UTF-8). > Do we have a way to represent such a difference? I don't think so. We return character strings, not byte arrays, and the byte length will vary between different encondings. > Certainly sounds like a bug, and with a nice small test case! Now filed in JIRA: https://issues.apache.org/jira/browse/DERBY-5525 -- Knut Anders
