Bug #65950 [Com]: Field name truncation if the field name is bigger than 32 characters

From: Date: Thu, 28 Nov 2013 15:09:30 +0000
Subject: Bug #65950 [Com]: Field name truncation if the field name is bigger than 32 characters
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182987@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=65950&edit=1 ID: 65950 Comment by: charles dot durrant at thomsonreuters dot com Reported by: michael dot y at zend dot com Summary: Field name truncation if the field name is bigger than 32 characters Status: Closed Type: Bug Package: ODBC related Operating System: Linux PHP Version: 5.4.21 Assigned To: yohgaki Block user comment: N Private report: N New Comment: Under SQL server Native Client 11.00 on Linux I get truncated to 15 - field names are returned as wide chars so I assume it is getting halved so 256 is a safer buffer size. Previous Comments: ------------------------------------------------------------------------ [2013-11-28 14:48:03] charles dot durrant at thomsonreuters dot com I had this problem, patch appreciated ------------------------------------------------------------------------ [2013-11-04 09:00:06] ab@php.net Automatic comment on behalf of yohgaki Revision: http://git.php.net/?p=php-src.git;a=commit;h=e50eb1ce3408d15cd26fd88203c68f52e59f6b0b Log: Fixed bug #65950 Field name truncation if the field name is bigger than 32 characters ------------------------------------------------------------------------ [2013-10-28 09:44:32] yohgaki@php.net Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php http://git.php.net/?p=php-src.git;a=commitdiff;h=e50eb1ce3408d15cd26fd88203c68f52e59f6b0b ------------------------------------------------------------------------ [2013-10-26 23:01:58] yohgaki@php.net Patches for branches is ready, but git is closed now. Assign this to myself. ------------------------------------------------------------------------ [2013-10-25 23:11:07] yohgaki@php.net I think SQL standard is 128, but 256 should work also. (There may be DBMS that has larger limit) Checked php_obdb.c and it look fine with your patch. I'll apply your patch. Thank you. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=65950 -- Edit this bug report at https://bugs.php.net/bug.php?id=65950&edit=1

« previous php.bugs (#182987) next »