oceanbase / oceanbase/obclient

[Bug]: build obclient error

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

Nobody has claimed this yet.

Dominant language
C++
Stars
94
Forks
42
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

/obclient/client/mysql.cc: In function ‘bool do_connect(MYSQL*, const char*, const char*, const char*, const char*, ulong)’:
/obclient/client/mysql.cc:1809:12: error: ‘MYSQL’ has no member named ‘ob_server_version’
mysql->ob_server_version = PROXY_MODE;
^
/obclient/client/mysql.cc: In function ‘my_bool get_one_option(int, const my_option*, char*)’:
/obclient/client/mysql.cc:2211:34: warning: the address of ‘delimiter’ will always evaluate as ‘true’ [-Waddress]
if (delimiter_length == 1 && delimiter && delimiter[0] == ';') {
^
/obclient/client/mysql.cc: In function ‘bool add_line(String&, char*, size_t, char*, bool*, bool*, bool)’:
/obclient/client/mysql.cc:2947:13: warning: unused variable ‘str’ [-Wunused-variable]
char str = NULL;
^
/obclient/client/mysql.cc: In function ‘void print_table_data(MYSQL_RES
)’:
/obclientclient/mysql.cc:4868:103: error: ‘IS_NUM_TERMINAL’ was not declared in this scope
if ((!force_set_num_width_close) && mysql.oracle_mode && cur[off] && IS_NUM_TERMINAL(field->type) && IS_NUM_BINARY_TERMINAL(field->type)) {
^
/obclient/client/mysql.cc:4868:142: error: ‘IS_NUM_BINARY_TERMINAL’ was not declared in this scope
if ((!force_set_num_width_close) && mysql.oracle_mode && cur[off] && IS_NUM_TERMINAL(field->type) && IS_NUM_BINARY_TERMINAL(field->type)) {

Environment

tag v2.2.10

Fast reproduce steps

sh build.sh release

Expected behavior

No response

Actual behavior

No response

Additional context

No response

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 build.sh release reproduction at tag v2.2.10 and inspect obclient/client/mysql.cc at the reported lines. Trace the missing MYSQL member and undefined terminal macros to determine the relevant declarations, then verify that the release build completes without these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
build-system, cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.