Skip to content

v2.1.0 — Fix setSchema StackOverflow

Choose a tag to compare

@padak padak released this 06 Mar 09:09
· 62 commits to main since this release

What's new

Bug fix

Fix StackOverflowError when calling setSchema() or executing USE SCHEMA — the driver entered infinite recursion:

setSchema("in.c-main")
  → execute("USE SCHEMA \"in.c-main\"")
    → interceptUseCommand() detects USE SCHEMA
      → setSchema("in.c-main")
        → execute("USE SCHEMA ...") → ... StackOverflow

Fixed by introducing updateLocalSchema() which only updates the local field without executing SQL. interceptUseCommand() now uses this method.

Contributors

Thanks to @jbotor for finding and fixing this bug (PR #4).