|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesphp_odbc.patch (last revision 2013-10-23 11:49 UTC by michael dot y at zend dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-10-25 23:11 UTC] yohgaki@php.net
[2013-10-26 23:01 UTC] yohgaki@php.net
-Assigned To:
+Assigned To: yohgaki
[2013-10-26 23:01 UTC] yohgaki@php.net
[2013-10-28 09:44 UTC] yohgaki@php.net
-Status: Assigned
+Status: Closed
[2013-10-28 09:44 UTC] yohgaki@php.net
[2013-11-04 09:00 UTC] ab@php.net
[2013-11-28 14:48 UTC] charles dot durrant at thomsonreuters dot com
[2013-11-28 15:09 UTC] charles dot durrant at thomsonreuters dot com
[2014-10-07 23:16 UTC] stas@php.net
[2014-10-07 23:27 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 07:00:01 2025 UTC |
Description: ------------ Field names are truncated to 30 charactes if they are bigger than 32 bytes in MS SQL Server. If i am using odbc php extension that connects to unixodbc + freetds. Test script: --------------- <?php $cnx = odbc_connect("Driver=FreeTDS; Server=10.9.178.47;port=1433;Database=AdventureWorks;CHARSET=UTF-8;TDS_Version=8.0;", "sa", "pass"); $query = "SELECT * FROM dbo.Roman"; $res = odbc_exec($cnx,$query); while( $row = odbc_fetch_array($res) ) { print_r($row); } echo $cnx; ?> Expected result: ---------------- Roman table there is a field which name is hello_one_two_three_four_five_six_seven_eight_nine_ten_eleven. Actual result: -------------- It is truncated to hello_one_two_three_four_five_ .