ResultSet rs = stmt.executeQuery(TEST_QUERY2);
ResultSetMetaData metaData = rs.getMetaData();
int columnDisplaySize = metaData.getColumnDisplaySize(3);
if (firebirdVersion == 1)
assertEquals("RDB$SECURITY_CLASS must have display size 10 ", 10, columnDisplaySize);
<BUG>else if (firebirdVersion >= 2)
assertEquals("RDB$SECURITY_CLASS must have display size 31 ", 31, columnDisplaySize);
else</BUG>
fail("Unknown Firebird version, not clear what to compare.");
int columnDisplaySize2 = metaData.getColumnDisplaySize(4);

ResultSet rs = stmt.executeQuery(TEST_QUERY2);
ResultSetMetaData metaData = rs.getMetaData();
int columnDisplaySize = metaData.getColumnDisplaySize(3);
if (firebirdVersion == 1)
assertEquals("RDB$SECURITY_CLASS must have display size 10 ", 10, columnDisplaySize);
else if (firebirdVersion >= 2 && firebirdVersion < 4)
assertEquals("RDB$SECURITY_CLASS must have display size 31 ", 31, columnDisplaySize);
else if (firebirdVersion >= 4)
assertEquals("RDB$SECURITY_CLASS must have display size 63 ", 63, columnDisplaySize);
else
fail("Unknown Firebird version, not clear what to compare.");
int columnDisplaySize2 = metaData.getColumnDisplaySize(4);
