oceanbase / oceanbase/seekdb

mysqltest: dblink.sequence_for_dblink_mysql fails with error 1235 on DROP DATABASE LINK IF EXISTS

Open
#500 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dima type: bug
Dominant language
C++
Stars
2.9k
Forks
339
Avg merge
1d 19h
Merged PRs (30d)
52

Description

Environment

  • Platform: Android (Android Studio emulator)
  • Device: emulator-5554
  • Architecture: arm64
  • Binary: ./data/local/tmp/seekdb
  • Startup Command: --nodaemon --base-dir /data/local/tmp/seekdb_data --port 5881
  • Port: 5881

Description

In the dblink.sequence_for_dblink_mysql test, the DROP DATABASE LINK IF EXISTS statement is not supported and returns error code 1235.

Steps to Reproduce

  1. Start the server on the Android emulator using the provided command.
  2. Execute the DROP DATABASE LINK IF EXISTS statement.
  3. Observe the error (code 1235).

Impact

The IF EXISTS syntax for dropping database links is not functional, which may affect scripts or applications that rely on this conditional drop feature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the mysqltest case dblink.sequence_for_dblink_mysql and reproduce the DROP DATABASE LINK IF EXISTS statement on the provided Android emulator setup. Trace where the statement returns error 1235 and verify the test’s expected behavior. Done means the conditional drop executes successfully and the named test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, sql
Domain
database
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.