Skip to content

[FEATURE]:add oceanbase oracle supprot #7280

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

Open
wants to merge 6 commits into
base: 2.x
Choose a base branch
from
Open

Conversation

xxsc0529
Copy link

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

Oceanbase's MySQL mode is directly driven by MySQL connections. Due to the coding model, it is not convenient to distinguish between the specific patterns of querying the database according to connect, and only the oracle mode is adapted here. The code logic of Oracle is basically reused, and the reason why this part of the code is added is that the Oracle mode of OceanBase can only be connected through the OceanBase protocol. Due to the driver problem, the oracle mode of OceanBase cannot obtain the value of the auto-increment primary key in the oracle mode through getGenerateKeys, so the transaction control of the auto-increment SQL statement by sequence number is not supported.

Ⅱ. Does this pull request fix one issue?

close #7279

Ⅲ. Why don't you add test cases (unit test/integration test)?

Test code that basically reuses the oracle schema
org.apache.seata.rm.datasource.exec.OceanBaseInsertExecutorTest
org.apache.seata.rm.datasource.sql.struct.TableMetaCacheFactoryTest

Ⅳ. Describe how to verify it

use https://github.com/apache/incubator-seata-samples

Ⅴ. Special notes for reviews

oceanbase is ant group open source products.
the oracle mode of OceanBase cannot obtain the value of the auto-increment primary key in the oracle mode through getGenerateKeys, so the transaction control of the auto-increment SQL statement by sequence number is not supported.

@xxsc0529 xxsc0529 closed this Apr 14, 2025
@xxsc0529 xxsc0529 reopened this Apr 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feature]:add oceanbase oracle mode support
1 participant