Skip to content

[Enhancement]: delete the codes oracle related (#116)#145

Merged
LINxiansheng merged 1 commit into
oceanbase:developfrom
zhangjiongai-debug:fix/delete-oracle-related-code
Jan 31, 2026
Merged

[Enhancement]: delete the codes oracle related (#116)#145
LINxiansheng merged 1 commit into
oceanbase:developfrom
zhangjiongai-debug:fix/delete-oracle-related-code

Conversation

@zhangjiongai-debug

Copy link
Copy Markdown
Contributor

Summary

  • Remove Oracle-related functions from ob_errno.h and ob_errno.cpp:
    • ob_oracle_errno
    • ob_oracle_errno_with_check
    • ob_oracle_strerror
    • ob_oracle_str_user_error
    • get_ob_errno_from_oracle_errno
  • Modify ob_errpkt_* functions to only use MySQL error handling
  • Update all callers to use MySQL error functions instead of Oracle ones
  • Remove Oracle error support from tools/ob_error

Test plan

  • Verify the code compiles successfully
  • Run existing unit tests to ensure no regressions
  • Test error handling with MySQL-compatible error codes

Changes

File Description
src/share/ob_errno.h Remove Oracle function declarations
src/share/ob_errno.cpp Remove Oracle function definitions, simplify ob_errpkt_* functions
src/pl/ob_pl.cpp Replace ob_oracle_strerror with ob_strerror
src/sql/resolver/ddl/ob_create_view_resolver.cpp Replace ob_oracle_strerror with ob_strerror
src/observer/mysql/obmp_packet_sender.cpp Remove Oracle mode check, use MySQL errno only
src/observer/mysql/obmp_stmt_prexecute.cpp Replace ob_oracle_strerror with ob_strerror
src/sql/engine/dml/ob_err_log_service.cpp Replace Oracle functions with MySQL equivalents
tools/ob_error/src/ob_error.cpp Remove Oracle error lookup and display functionality

Closes #116

🤖 Generated with Claude Code

Remove Oracle-related code from seekdb as it no longer supports Oracle
compatibility mode.

Changes:
- Remove ob_oracle_errno, ob_oracle_errno_with_check, ob_oracle_strerror,
  and ob_oracle_str_user_error function declarations from ob_errno.h
- Remove corresponding function definitions from ob_errno.cpp
- Modify ob_errpkt_* functions to only use MySQL error handling
- Update callers to use MySQL error functions instead of Oracle ones:
  - src/pl/ob_pl.cpp
  - src/sql/resolver/ddl/ob_create_view_resolver.cpp
  - src/observer/mysql/obmp_packet_sender.cpp
  - src/observer/mysql/obmp_stmt_prexecute.cpp
  - src/sql/engine/dml/ob_err_log_service.cpp
- Remove Oracle error support from tools/ob_error

Closes oceanbase#116

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

@LINxiansheng LINxiansheng left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@LINxiansheng

Copy link
Copy Markdown
Member

Goooooooooood

@LINxiansheng LINxiansheng merged commit be12e12 into oceanbase:develop Jan 31, 2026
2 checks passed
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.

[Enhancement]: delete the codes oracle related

2 participants