Skip to content

fix(shadowtable): bad sql grammer when table column's default value is a string type in MySQL#2388

Merged
yhilmare merged 3 commits into
dev/4.2.xfrom
lebie_424bp2_fix_shadowtable_0514
May 14, 2024
Merged

fix(shadowtable): bad sql grammer when table column's default value is a string type in MySQL#2388
yhilmare merged 3 commits into
dev/4.2.xfrom
lebie_424bp2_fix_shadowtable_0514

Conversation

@MarkPotato777
Copy link
Copy Markdown
Contributor

What type of PR is this?

type-bug

What this PR does / why we need it:

When the original table column's default is a string type, the generated ddl does not quote the default value which causes to sql execution failed.

Which issue(s) this PR fixes:

Fixes #2379

Special notes for your reviewer:

This issue was introduced by #1401

Additional documentation e.g., usage docs, etc.:


@MarkPotato777 MarkPotato777 added the type-bug Something isn't working label May 14, 2024
@MarkPotato777 MarkPotato777 added this to the ODC 4.2.4-bp2 milestone May 14, 2024
@MarkPotato777 MarkPotato777 self-assigned this May 14, 2024
@MarkPotato777 MarkPotato777 marked this pull request as ready for review May 14, 2024 08:30
yhilmare
yhilmare previously approved these changes May 14, 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

PeachThinking
PeachThinking previously approved these changes May 14, 2024
Copy link
Copy Markdown
Contributor

@PeachThinking PeachThinking left a comment

Choose a reason for hiding this comment

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

LGTM

@PeachThinking PeachThinking dismissed stale reviews from yhilmare and themself via ef971c6 May 14, 2024 11:08
@MarkPotato777 MarkPotato777 requested a review from yizhouxw as a code owner May 14, 2024 11:08
Comment thread server/odc-common/src/main/java/com/oceanbase/odc/common/util/StringUtils.java Outdated
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

Copy link
Copy Markdown
Contributor

@yizhouxw yizhouxw left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Contributor

@PeachThinking PeachThinking left a comment

Choose a reason for hiding this comment

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

LGTM

Comment thread server/odc-common/src/main/java/com/oceanbase/odc/common/util/StringUtils.java Outdated
@yhilmare yhilmare merged commit 9d577b7 into dev/4.2.x May 14, 2024
@yhilmare yhilmare deleted the lebie_424bp2_fix_shadowtable_0514 branch May 14, 2024 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug Something isn't working

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants