Skip to content

add String() for FieldValue #825

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

Merged
merged 3 commits into from
Sep 26, 2023
Merged

Conversation

lance6716
Copy link
Collaborator

@lance6716 lance6716 commented Sep 22, 2023

close #821

Signed-off-by: lance6716 <[email protected]>
Copy link
Collaborator Author

@lance6716 lance6716 left a comment

Choose a reason for hiding this comment

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

@atercattus PTAL, not sure if you have spare time

Signed-off-by: lance6716 <[email protected]>
}

// test can directly use to build a SQL, though it's not safe in most cases
sql := fmt.Sprintf("INSERT INTO field_value_test VALUES (%s)", strings.Join(expected, ","))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@zhujintao do you think it's OK to use?

Choose a reason for hiding this comment

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

yes, it works very well

@lance6716 lance6716 merged commit 93df998 into go-mysql-org:master Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add value string output
2 participants