Skip to content

Conversation

bpintea
Copy link
Collaborator

@bpintea bpintea commented Aug 20, 2019

This PR fixes the length handling of received wide-char strings as
parameters: the indicator-length pointer of the API call provides the
octet count, so the lenght needs to be divided by wide-char size.

Besides a couple of tests for the fix, the PR adds a new test suite on
null generation (both of non-NULL and NULL types).

This commit fixes the length handling of received wide-char strings as
parameters: the indicator-length pointer of the API call provides the
octet count, so the lenght needs to be divided by wide-char size.

Besides a couple of tests for the fix, the commit adds a new test on
null generation (both of non-NULL and NULL types).
Copy link
Contributor

@droberts195 droberts195 left a comment

Choose a reason for hiding this comment

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

LGTM

@bpintea bpintea merged commit 29376ec into elastic:master Aug 28, 2019
@bpintea bpintea deleted the fix/param_bind_ind_len_octets branch August 28, 2019 15:12
bpintea added a commit that referenced this pull request Aug 28, 2019
This commit fixes the length handling of received wide-char strings as
parameters: the indicator-length pointer of the API call provides the
octet count, so the lenght needs to be divided by wide-char size.

Besides a couple of tests for the fix, the commit adds a new test on
null generation (both of non-NULL and NULL types).

(cherry picked from commit 29376ec)

Resolved conflict: s/WAPI_ERRNO/WCS2U8_ERRNO/ .
bpintea added a commit that referenced this pull request Aug 28, 2019
This commit fixes the length handling of received wide-char strings as
parameters: the indicator-length pointer of the API call provides the
octet count, so the lenght needs to be divided by wide-char size.

Besides a couple of tests for the fix, the commit adds a new test on
null generation (both of non-NULL and NULL types).

(cherry picked from commit 29376ec)
bpintea added a commit that referenced this pull request Dec 4, 2019
This commit fixes the length handling of received wide-char strings as
parameters: the indicator-length pointer of the API call provides the
octet count, so the lenght needs to be divided by wide-char size.

Besides a couple of tests for the fix, the commit adds a new test on
null generation (both of non-NULL and NULL types).

(cherry picked from commit 29376ec)

Resolved conflicts:
- driver/convert.c
Resolved partial merge:
- test/test_conversion_c2sql_varchar.cc
bpintea added a commit that referenced this pull request Dec 4, 2019
bpintea added a commit that referenced this pull request Dec 4, 2019
This commit fixes the length handling of received wide-char strings as
parameters: the indicator-length pointer of the API call provides the
octet count, so the lenght needs to be divided by wide-char size.

Besides a couple of tests for the fix, the commit adds a new test on
null generation (both of non-NULL and NULL types).

(cherry picked from commit 29376ec)

Resolve conflicts:
- driver/convert.c
Unit testing changes have not been ported.
@bpintea bpintea added the v6.8.6 label Dec 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants