File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
main/java/com/databricks/jdbc/core
test/java/com/databricks/jdbc/core Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -618,7 +618,6 @@ protected static boolean shouldReturnResultSet(String query) {
618618 trimmedQuery = trimmedQuery .replaceAll ("/\\ *.*?\\ */" , "" );
619619 trimmedQuery = trimmedQuery .replaceAll ("\\ s+" , " " ).trim ();
620620
621-
622621 // Check if the query matches any of the patterns that return a ResultSet
623622 if (SELECT_PATTERN .matcher (trimmedQuery ).find ()
624623 || SHOW_PATTERN .matcher (trimmedQuery ).find ()
Original file line number Diff line number Diff line change 2020import java .util .Properties ;
2121import java .util .concurrent .CompletableFuture ;
2222import java .util .concurrent .TimeUnit ;
23- import org .junit .jupiter .api .Test ;;
23+ import org .junit .jupiter .api .Test ;
2424import org .junit .jupiter .api .extension .ExtendWith ;
2525import org .mockito .Mock ;
2626import org .mockito .junit .jupiter .MockitoExtension ;
@@ -458,7 +458,8 @@ public void testShouldReturnResultSet_SingleAndMultiLineComments() {
458458
459459 @ Test
460460 public void testShouldReturnResultSet_CommentSurroundingQuery () {
461- String query = "-- Single-line comment\n /* Multi-line comment */ SELECT * FROM table; /* Another comment */ -- End comment" ;
461+ String query =
462+ "-- Single-line comment\n /* Multi-line comment */ SELECT * FROM table; /* Another comment */ -- End comment" ;
462463 assertTrue (DatabricksStatement .shouldReturnResultSet (query ));
463464 }
464465}
You can’t perform that action at this time.
0 commit comments