Skip to content

Commit 8bd100c

Browse files
committed
Fix testing failure on Firebird 2.5
1 parent acf3aec commit 8bd100c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/org/firebirdsql/jdbc/FBDatabaseMetaDataTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ void testGetProcedureSourceCode_String() throws SQLException {
821821
stmt.execute("create procedure TEST_PROC_1 (VARIN integer) as " + procedureBody);
822822
}
823823

824-
assertEquals(procedureBody, dbmd.getProcedureSourceCode("TEST_PROC_1"), "Procedure source");
824+
assertEquals(procedureBody, dbmd.getProcedureSourceCode("TEST_PROC_1").trim(), "Procedure source");
825825
}
826826

827827
@Test
@@ -899,7 +899,7 @@ void testGetViewSourceCode_String() throws SQLException {
899899
try {
900900
stmt.execute("create view TEST_VIEW_1 as " + viewBody);
901901

902-
assertEquals(viewBody, dbmd.getViewSourceCode("TEST_VIEW_1"), "View source");
902+
assertEquals(viewBody, dbmd.getViewSourceCode("TEST_VIEW_1").trim(), "View source");
903903
} finally {
904904
DdlHelper.executeDDL(stmt, List.of("drop view TEST_VIEW_1"), isc_no_meta_update,
905905
isc_dsql_table_not_found, isc_dsql_view_not_found, isc_dsql_drop_trigger_failed);

0 commit comments

Comments
 (0)