File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
src/main/java/com/salesforce/datacloud/jdbc/exception Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,9 @@ public class QueryExceptionHandler {
3333 private static final int MAX_QUERY_LENGTH_IN_EXCEPTION = 16 * 1024 ;
3434
3535 public static DataCloudJDBCException createQueryException (String query , Exception e ) {
36- String exceptionQuery = query ;
37- if (exceptionQuery .length () > MAX_QUERY_LENGTH_IN_EXCEPTION ) {
38- exceptionQuery = exceptionQuery .substring (0 , MAX_QUERY_LENGTH_IN_EXCEPTION ) + "<truncated>" ;
39- }
36+ String exceptionQuery = query .length () > MAX_QUERY_LENGTH_IN_EXCEPTION
37+ ? query .substring (0 , MAX_QUERY_LENGTH_IN_EXCEPTION ) + "<truncated>"
38+ : query ;
4039 return QueryExceptionHandler .createException ("Failed to execute query: " + exceptionQuery , e );
4140 }
4241
You can’t perform that action at this time.
0 commit comments