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

[CBRD-25018] In case of unsigned tinyint in mysql and mariadb, error … #4706

Merged
merged 1 commit into from
Sep 25, 2023
Merged

[CBRD-25018] In case of unsigned tinyint in mysql and mariadb, error … #4706

merged 1 commit into from
Sep 25, 2023

Conversation

airnet73
Copy link
Contributor

http://jira.cubrid.org/browse/CBRD-25018

Purpose
In the case of unsigned tinyint in mysql and mariadb, an error occurred when retrieving the value as smallint type.
When the Gateway requested a value from ODBC, it requested a smallint. At this time, if the value was 127 or higher, 0xFF was added in front of the value and an incorrect value was delivered.
For example, if you input 225 into unsigned tinyint and read the value, it should return 225 (0xE1), but in reality, it returns 65505 (0xFFE1).
For reference, values 1 to 127 are returned as 1(0x01) to 127(0xF7).

In the case of unsigned tinyint, when requesting a value from ODBC, it needs to be changed to request tinyint.

Implementation
N/A

Remarks
N/A

@airnet73 airnet73 requested a review from kisoo-han September 25, 2023 00:01
@airnet73 airnet73 self-assigned this Sep 25, 2023
@mhoh3963 mhoh3963 merged commit 828d1d2 into CUBRID:develop Sep 25, 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.

3 participants