Skip to content

fix(sql-execute): fail to execute statement on OceanBase 2.2.30#1487

Merged
yhilmare merged 3 commits into
dev/4.2.3from
wenmu_423_fix_fail_get_2230_sid
Jan 31, 2024
Merged

fix(sql-execute): fail to execute statement on OceanBase 2.2.30#1487
yhilmare merged 3 commits into
dev/4.2.3from
wenmu_423_fix_fail_get_2230_sid

Conversation

@LuckyPickleZZ
Copy link
Copy Markdown
Member

What type of PR is this?

type-bug

What this PR does / why we need it:

userenv('sessionid') are not supported on OB 2230, so we use OceanBaseConnection#getServerThreadId instead.
But in BaseSqlExecuteCallable , the connection is generated from SingleConnectionDataSource. It's not instance of OceanBaseConnection. So we should get the real connection to get the id.

Which issue(s) this PR fixes:

Fixes #1475

@LuckyPickleZZ LuckyPickleZZ added this to the ODC 4.2.3-bp milestone Jan 30, 2024
@LuckyPickleZZ LuckyPickleZZ self-assigned this Jan 30, 2024
Copy link
Copy Markdown
Contributor

@yhilmare yhilmare left a comment

Choose a reason for hiding this comment

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

lgtm

@yhilmare yhilmare merged commit 554ad3e into dev/4.2.3 Jan 31, 2024
@yhilmare yhilmare deleted the wenmu_423_fix_fail_get_2230_sid branch January 31, 2024 02:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants