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

Issue#192 #201

Merged
merged 4 commits into from
Dec 13, 2016
Merged

Issue#192 #201

merged 4 commits into from
Dec 13, 2016

Conversation

ulvii
Copy link
Contributor

@ulvii ulvii commented Dec 13, 2016

Fix for the issue with buffered result sets.
When connection option is set to utf8, we cannot assume that local code page matches the server collation. Need to call SQLGetData with target c type set to SQL_C_WCHAR.

else {
// If encoding is set to UTF-8, the following types are not necessarily column size.
// We need to call SQLGetData with c_type SQL_C_WCHAR and set the size accordingly.
if ( encoding == SQLSRV_ENCODING( CP_UTF8 )) {

Choose a reason for hiding this comment

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

it is better to use SQLSRV_ENCODING_UTF8 syntax instead of SQLSRV_ENCODING( CP_UTF8 )

@Hadis-Fard Hadis-Fard merged commit 6497c23 into microsoft:PHP-7.0 Dec 13, 2016
@ulvii ulvii deleted the issue#192 branch March 10, 2017 22:00
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