-
Notifications
You must be signed in to change notification settings - Fork 695
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: EXPOSED-662 SchemaUtils.listTables() returns empty list & closes…
… db connection (#2331) * fix: EXPOSED-662 SchemaUtils.listTables() closes connection to db For some unclear reason, the changes made [here](008faf3) were causing the database connection to close. This fixes that by adding a new function `tableNamesForAllSchemas()` and invoking that in `allTablesNames()`. * fix: EXPOSED-662 SchemaUtils.listTables() returns empty list & closes db connection - Revert change to VendorDialect.allTablesNames() so that both it and SchemaUtils.listTables() has original behavior (only returns lists in current schema) - Add new SchemaUtils method to alternatively return list of all table names in all schemas. - Adjust tests to invoke listTables() without prior call to exists(). * fix: EXPOSED-662 SchemaUtils.listTables() returns empty list & closes db connection - Fix KDocs for new SchemaUtils method - Override CachableMapWithDefault properties to throw unsupported exception & prevent future similar issues * fix: EXPOSED-662 SchemaUtils.listTables() returns empty list & closes db connection - Undo changes to CachableMapWithDefault * Disallow `entries` and `keys` fields of CachableMapWithDefault --------- Co-authored-by: Chantal Loncle <82039410+bog-walk@users.noreply.github.com> Co-authored-by: Oleg Babichev <oleg.babichev@jetbrains.com>
- Loading branch information
1 parent
b5c934d
commit 9105cc1
Showing
6 changed files
with
113 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters