Skip to content
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

[SQL] Support MySQL REPLACE function. #538

Closed
Tracked by #454
dongzl opened this issue Nov 20, 2022 · 2 comments · Fixed by #551
Closed
Tracked by #454

[SQL] Support MySQL REPLACE function. #538

dongzl opened this issue Nov 20, 2022 · 2 comments · Fixed by #551
Assignees
Labels
SQL SQL support
Milestone

Comments

@dongzl
Copy link
Contributor

dongzl commented Nov 20, 2022

What would you like to be added:

Why is this needed:

ref #454

official document:
https://dev.mysql.com/doc/refman/5.6/en/string-functions.html#function_replace

code:
https://github.com/arana-db/arana/tree/master/pkg/runtime/function/scripts/string.js

reference code:
https://github.com/arana-db/arana/tree/master/pkg/runtime/function2/abs.go

@dongzl dongzl mentioned this issue Nov 20, 2022
43 tasks
@dongzl dongzl added this to the 0.2.0 milestone Nov 20, 2022
@dongzl dongzl added the SQL SQL support label Nov 20, 2022
@dongzl dongzl changed the title REPLACE [SQL] Support MySQL REPLACE function. Nov 20, 2022
@dongzl
Copy link
Contributor Author

dongzl commented Nov 20, 2022

@DemanWei

@DemanWei
Copy link
Contributor

I am WeiDeman

AlexStocks pushed a commit that referenced this issue Nov 30, 2022
* [SQL] Support show replica status SQL statement. (arana#494)

* [SQL] Support show replica status SQL statement. (arana#494)

* fix import format

* [request]reformat imports by myself

* [SQL] Support MySQL REPLACE function. #538

* [SQL] Support MySQL REPLACE function. #538

* [SQL] Support MySQL REPLACE function. #538

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* Consider the case if args' type is bool

* Consider the case if args' type is bool
AlexStocks pushed a commit that referenced this issue Dec 26, 2022
* [SQL] Support show replica status SQL statement. (arana#494)

* [SQL] Support show replica status SQL statement. (arana#494)

* fix import format

* [request]reformat imports by myself

* [SQL] Support MySQL REPLACE function. #538

* [SQL] Support MySQL REPLACE function. #538

* [SQL] Support MySQL REPLACE function. #538

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* Consider the case if args' type is bool

* Consider the case if args' type is bool

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* Resolve Conversation

* Resolve Conversation
dongzl pushed a commit that referenced this issue Jan 18, 2023
* [SQL] Support show replica status SQL statement. (arana#494)

* [SQL] Support show replica status SQL statement. (arana#494)

* fix import format

* [request]reformat imports by myself

* [SQL] Support MySQL REPLACE function. #538

* [SQL] Support MySQL REPLACE function. #538

* [SQL] Support MySQL REPLACE function. #538

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* Consider the case if args' type is bool

* Consider the case if args' type is bool

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* Resolve Conversation

* Resolve Conversation

* [Bug] SHOW REPLICA/MASTER STATUS error #598
GavinLam164 pushed a commit to GavinLam164/arana that referenced this issue Feb 25, 2023
* [SQL] Support show replica status SQL statement. (arana#494)

* [SQL] Support show replica status SQL statement. (arana#494)

* fix import format

* [request]reformat imports by myself

* [SQL] Support MySQL REPLACE function. arana-db#538

* [SQL] Support MySQL REPLACE function. arana-db#538

* [SQL] Support MySQL REPLACE function. arana-db#538

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* Consider the case if args' type is bool

* Consider the case if args' type is bool
GavinLam164 pushed a commit to GavinLam164/arana that referenced this issue Feb 25, 2023
* [SQL] Support show replica status SQL statement. (arana#494)

* [SQL] Support show replica status SQL statement. (arana#494)

* fix import format

* [request]reformat imports by myself

* [SQL] Support MySQL REPLACE function. arana-db#538

* [SQL] Support MySQL REPLACE function. arana-db#538

* [SQL] Support MySQL REPLACE function. arana-db#538

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* Consider the case if args' type is bool

* Consider the case if args' type is bool

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* Resolve Conversation

* Resolve Conversation
GavinLam164 pushed a commit to GavinLam164/arana that referenced this issue Feb 25, 2023
* [SQL] Support show replica status SQL statement. (arana#494)

* [SQL] Support show replica status SQL statement. (arana#494)

* fix import format

* [request]reformat imports by myself

* [SQL] Support MySQL REPLACE function. arana-db#538

* [SQL] Support MySQL REPLACE function. arana-db#538

* [SQL] Support MySQL REPLACE function. arana-db#538

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* No long use `import "github.com/pkg/errors"`, and modified the function content.

* Consider the case if args' type is bool

* Consider the case if args' type is bool

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* [SQL] Support MySQL SUBSTRING function.

* Resolve Conversation

* Resolve Conversation

* [Bug] SHOW REPLICA/MASTER STATUS error arana-db#598
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
SQL SQL support
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants