comparison tests/JDBC_API_Tester.java @ 647:8d7c75cc01e3

Adapt test for getTableTypes(). Filter out UNLOGGED TABLE value for stable output on all future and past MonetDB versions.
author Martin van Dinther <martin.van.dinther@monetdbsolutions.com>
date Thu, 14 Apr 2022 19:46:42 +0200 (2022-04-14)
parents 1db097f11e28
children 060347aa81ea
comparison
equal deleted inserted replaced
646:1db097f11e28 647:8d7c75cc01e3
4003 rs2 = dbmd.getTableTypes(); 4003 rs2 = dbmd.getTableTypes();
4004 if (rs2 != null) { 4004 if (rs2 != null) {
4005 sb.append("List TableTypes:\n"); 4005 sb.append("List TableTypes:\n");
4006 while (rs2.next()) { 4006 while (rs2.next()) {
4007 String tt = rs2.getString(1); 4007 String tt = rs2.getString(1);
4008 // post Oct2020 releases the STREAM TABLE type is removed, so filter it out for a stable output 4008 // the STREAM TABLE type is REMOVED in post Oct2020 releases, so filter it out for a stable output on all releases
4009 if (!"STREAM TABLE".equals(tt)) 4009 // the UNLOGGED TABLE type is ADDED in post Jan2022 releases, so filter it out for a stable output on all releases
4010 if (! ("STREAM TABLE".equals(tt) || "UNLOGGED TABLE".equals(tt)) )
4010 sb.append(tt).append("\n"); 4011 sb.append(tt).append("\n");
4011 } 4012 }
4012 rs2.close(); 4013 rs2.close();
4013 } 4014 }
4014 sb.append("completed listing TableTypes\n"); 4015 sb.append("completed listing TableTypes\n");