Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use "@default" for currentSchema and currentCatalog (when it could be…
… null). The problematic case that this change addresses is: Imagine the connection is "fresh", and the connection-string defines something like schema=S1 So the current schema of the connection would be S1, but currentSchema is still null. So we prepare a statement for S1, but the cache key contains null. If we then invoke setSchema(null) the connection is in schema-less state. Preparing the same statement would retrieve the one from above, which is prepared for S1. --- The FIX for this case, use "@default" instead of null, such that the cache key isn't problematic for the above case.
- Loading branch information