|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-03-19 00:37 UTC] sniper@php.net
[2005-03-25 01:53 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 08:00:01 2025 UTC |
Description: ------------ Hi, I tried to compile php5-200503170530 with ingres support on Win2k3 using VC7 (.net). I found out that unicode (nchar and nvarchar are not supported. The following lines should be added to ext\ingres_ii\ii.c 1287,1293c1287 < #ifdef WIN32 < case IIAPI_NVCH_TYPE: /* variable length unicode character string */ < case IIAPI_NCHA_TYPE: /* variable length unicode character string */ < len = wcslen((columnData[k - 1]).dv_value)*sizeof( WCHAR); < IIAPI_CONVERT(IIAPI_CHA_TYPE, len, 0); < /* NO break */ < #endif --- > Could you please add the new lines? Currently I only tested win32. I will also test on Linux and Solaris. Best regards Dr. Jens Vogt Reproduce code: --------------- $intext = "This is a unicode test: ??????"; $db = ingres_connect('iidbdb', $user, $passwd); $query = "create table temp ( name nvarchar(50) )"; ingres_query( $query, $db ); $query = "insert into temp (name) values('{$intext}')"; ingres_query( $query, $db ); $query = "select name from temp"; ingres_query( $query, $db ); $row = ingres_fetch_row( $db ); $outtext = trim($row[1]); $query = "drop table temp"; ingres_query( $query, $db ); echo "Outext: {$outtext}\n"; Expected result: ---------------- This is a unicode test: ?????? Actual result: -------------- Garbage...