1919import org .apache .commons .beanutils .BeanUtils ;
2020import org .apache .commons .beanutils .PropertyUtils ;
2121import org .apache .commons .lang3 .StringUtils ;
22+ import org .apache .commons .lang3 .Strings ;
2223import org .apache .logging .log4j .Level ;
2324import org .apache .logging .log4j .Logger ;
2425import org .jetbrains .annotations .NotNull ;
5051import org .labkey .api .query .RuntimeValidationException ;
5152import org .labkey .api .security .User ;
5253import org .labkey .api .util .BaseScanner ;
54+ import org .labkey .api .util .ExceptionUtil ;
5355import org .labkey .api .util .GUID ;
5456import org .labkey .api .util .JunitUtil ;
5557import org .labkey .api .util .MemTracker ;
@@ -571,7 +573,7 @@ Object getObject(ResultSet rs) throws SQLException
571573 // Standard SQLException catch block: log exception, query SQL, and params
572574 static void logException (@ Nullable SQLFragment sql , @ Nullable Connection conn , SQLException e , Level logLevel )
573575 {
574- if (SqlDialect .isCancelException (e ))
576+ if (SqlDialect .isCancelException (e ) || ExceptionUtil . isIgnorable ( e ) )
575577 {
576578 return ;
577579 }
@@ -585,7 +587,7 @@ static void logException(@Nullable SQLFragment sql, @Nullable Connection conn, S
585587 String trim = sql .getSQL ().trim ();
586588
587589 // Treat a ConstraintException during INSERT/UPDATE as a WARNING. Treat all other SQLExceptions as an ERROR.
588- if (RuntimeSQLException .isConstraintException (e ) && (StringUtils . startsWithIgnoreCase (trim , "INSERT" ) || StringUtils . startsWithIgnoreCase (trim , "UPDATE" )))
590+ if (RuntimeSQLException .isConstraintException (e ) && (Strings . CI . startsWith (trim , "INSERT" ) || Strings . CI . startsWith (trim , "UPDATE" )))
589591 {
590592 // Log this ConstraintException if log Level is WARN (the default) or lower. Skip logging for callers that request just ERRORs.
591593 if (Level .WARN .isMoreSpecificThan (logLevel ))
@@ -1409,7 +1411,7 @@ public void testSelect() throws SQLException
14091411 //noinspection EmptyTryBlock,UnusedDeclaration
14101412 try (ResultSet rs = new TableSelector (tinfo ).getResultSet ()){}
14111413
1412- Map [] maps = new TableSelector (tinfo ).getMapArray ();
1414+ Map <?, ?> [] maps = new TableSelector (tinfo ).getMapArray ();
14131415 assertNotNull (maps );
14141416
14151417 Principal [] principals = new TableSelector (tinfo ).getArray (Principal .class );
@@ -1739,7 +1741,7 @@ public static ParameterMapStatement deleteStatement(Connection conn, TableInfo t
17391741 //
17401742
17411743 Domain domain = tableDelete .getDomain ();
1742- DomainKind domainKind = tableDelete .getDomainKind ();
1744+ DomainKind <?> domainKind = tableDelete .getDomainKind ();
17431745 if (null != domain && null != domainKind && StringUtils .isEmpty (domainKind .getStorageSchemaName ()))
17441746 {
17451747 if (!d .isPostgreSQL () && !d .isSqlServer ())
0 commit comments