-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
*: Add replace statement #448
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
e26875e
parser: add parse replace statment
zimulala 5e9042b
parser: add test of parsing replace statment
zimulala 3447ac2
stmt: add replace statment
zimulala c5cb36a
stmt: add replace statment test
zimulala b9f0bbe
stmt: adjust the code format
zimulala 79ecef3
stmt: rename addRecord to getRow
zimulala 84ae608
stmt: add removeExistRow
zimulala ccc0ffd
stmt: add replace primary key and unique index test
zimulala 36a6080
stmt: rename addRecord to getRow and rename SetList to Setlist
zimulala bacb489
stmt: change remove method to function
zimulala b4562dc
stmt: update affected rows and test
zimulala f5f4b22
*: Update format.
zimulala 5a42db1
*: rename getSetlist to fillValueList and add the InsertRest structure
zimulala 376bdee
stmt: update only modify columns.
zimulala 4f92173
*: rename InsertRest to InsertValues and add TODOs
zimulala File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -373,6 +373,7 @@ rand {r}{a}{n}{d} | |
repeat {r}{e}{p}{e}{a}{t} | ||
references {r}{e}{f}{e}{r}{e}{n}{c}{e}{s} | ||
regexp {r}{e}{g}{e}{x}{p} | ||
replace {r}{e}{p}{l}{a}{c}{e} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Alignment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. alignment in view is ok. |
||
right {r}{i}{g}{h}{t} | ||
rlike {r}{l}{i}{k}{e} | ||
rollback {r}{o}{l}{l}{b}{a}{c}{k} | ||
|
@@ -802,6 +803,7 @@ year_month {y}{e}{a}{r}_{m}{o}{n}{t}{h} | |
return repeat | ||
{regexp} return regexp | ||
{references} return references | ||
{replace} return replace | ||
{rlike} return rlike | ||
|
||
{sys_var} lval.item = string(l.val) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a reference here. SQL statement syntax maybe different for different mysql version. So we need add reference.
We use 5.7 as standard. https://dev.mysql.com/doc/refman/5.7/en/replace.html