From:             php at electricsurfer dot com
Operating system: Win XP PRO
PHP version:      4.3.2
PHP Bug Type:     MSSQL related
Bug description:  mssql_fetch_assoc does not support long column names

If you select a field with a column name that has more than 30 chars. Using
mssql_fetch_assoc or mssql_fetch_row to fetch it will only return a key
with the 1st 30 chars.
( Mysql functions work with longer column names )

<?
// connect to db Here
$result = mssql_query('select MyVeryVeryVeryVeryVeryVeryLongColumnName
from table');
$row = mssql_fetch_assoc($result);
// $row = array('MyVeryVeryVeryVeryVeryVeryLong'=>50) (only first 30 chars
in key)
?>


-- 
Edit bug report at http://bugs.php.net/?id=23990&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=23990&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=23990&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=23990&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=23990&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=23990&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=23990&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=23990&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=23990&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=23990&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=23990&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23990&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=23990&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=23990&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=23990&r=gnused

Reply via email to