|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-04-03 22:08 UTC] fmk@php.net
[2007-04-11 08:42 UTC] Arne dot Heizmann at csr dot com
[2007-04-11 08:44 UTC] Arne dot Heizmann at csr dot com
[2007-04-11 14:00 UTC] tony2001@php.net
[2007-04-11 16:23 UTC] Arne dot Heizmann at csr dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
Description: ------------ The function mssql_field_name() appears to return only the first 30 characters of the field name. Reproduce code: --------------- <? $sql = 'select 1 as [This is a field name that is longer than 30 characters]'; $mssqlh = mssql_pconnect ('server', 'username', 'password'); // change as appropriate mssql_select_db ('databasename', $mssqlh); // change as appropriate $result = mssql_query ($sql, $mssqlh); $fieldname = mssql_field_name ($result, 0); var_export ($fieldname); ?> Expected result: ---------------- 'This is a field name that is longer than 30 characters' Actual result: -------------- 'This is a field name that is l'