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

Fixed blankspace padding in char datatype for multibyte characters #2167

Merged

Conversation

rohit01010
Copy link
Contributor

Description

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Tested locally

-- with server collation name = japanese_ci_as
1> select concat(cast('£' as char(1)), '|')
2> go
concat                                                                                                                                                                                                                                                          
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |                                                                                                                                                                                                                                                              

(1 rows affected)

-- with server collation name = chinese_prc_ci_as
1> select CONCAT(CAST('ち' AS char(1)),'|');
2> go
concat                                                                                                                                                                                                                                                          
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 |                                                                                                                                                                                                                                                              

(1 rows affected)

Signed-off-by: Rohit Bhagat [email protected]

Issues Resolved

BABEL-4638

Test Scenarios Covered

  • Use case based - NA

  • Boundary conditions - NA

  • Arbitrary inputs - NA

  • Negative test cases - NA

  • Minor version upgrade tests - NA

  • Major version upgrade tests - NA

  • Performance tests - NA

  • Tooling impact - NA

  • Client tests - NA

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.

For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Rohit Bhagat added 3 commits December 26, 2023 17:09
Signed-off-by: Rohit Bhagat <[email protected]>
Signed-off-by: Rohit Bhagat <[email protected]>
@Deepesh125 Deepesh125 merged commit 217bd56 into babelfish-for-postgresql:BABEL_3_X_DEV Jan 8, 2024
30 checks passed
rohit01010 added a commit to rohit01010/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rohit01010 added a commit to rohit01010/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
rishabhtanwar29 pushed a commit to amazon-aurora/babelfish_extensions that referenced this pull request Jan 8, 2024
…abelfish-for-postgresql#2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
shardgupta pushed a commit that referenced this pull request Jan 9, 2024
…2167)

Currently when multi-byte character is casted to char(1) space padding was not done properly. This PR will fix this issue.

Task: BABEL-4638
Signed-off-by: Rohit Bhagat <[email protected]>
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.

2 participants