Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix][Jdbc Connector]: Fix JdbcCatalogOptions BASE builder will be changed by call required() #6788

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Commits on May 2, 2024

  1. fix(Jdbc Connector): Fix JdbcCatalogOptions BASE builder will be chan…

    …ged by call `required()`
    
    JdbcCatalogOptions BASE builder will be changed by call `required()` because it just a static variable and Builder inner list will be changed if you are using code like this:
    
    ```java
    OceanBaseCatalogFactory factory = new OceanBaseCatalogFactory();
    factory.optionRule();
    factory.optionRule();
    ```
    So change the BASE variable to a function, when we call the `base()` function, it will create a new Builder, so it will be new every call;
    Jetiaime committed May 2, 2024
    Configuration menu
    Copy the full SHA
    b7a07db View commit details
    Browse the repository at this point in the history