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

TRIM only trims spaces by default, not all whitespace #217

Open
ethan-oro opened this issue Jun 21, 2024 · 0 comments
Open

TRIM only trims spaces by default, not all whitespace #217

ethan-oro opened this issue Jun 21, 2024 · 0 comments

Comments

@ethan-oro
Copy link

TRIM, LTRIM and RTRIM do not trim non-space whitespace if set_of_characters_to_remove is not specified. the following test case with a tab character demonstrates this

{
	name:         "trim",
	query:        `SELECT TRIM('		apple	')`,
	expectedRows: [][]interface{}{{"apple"}},
}

returns

    query_test.go:6075: [0]: (-want +got):
          []any{
        - 	string("apple"),
        + 	string(`		apple	`),
          }
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

No branches or pull requests

1 participant