Bug #16509: mssql_fetch_array limit on fieldname-length
| From: | vincent at sunlight dot tmfweb dot nl | Date: | Tue, 09 Apr 2002 09:51:04 +0000 |
| Subject: | Bug #16509: mssql_fetch_array limit on fieldname-length | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4413@lists.php.net to get a copy of this message | ||
From: vincent@sunlight.tmfweb.nl
Operating system: Win2K
PHP version: 4.1.1
PHP Bug Type: MSSQL related
Bug description: mssql_fetch_array limit on fieldname-length
When getting an associative array from a MSSQL database: with
mssql_fetch_array(), the keys of the array can be no longer than 30
characters.
I have a field 'last_modification_user_login_id' (31 characters) in a
table 'document', but after selecting all fields from that table, I can't
access that field. A var_dump however on the array shows a key
'last_modification_user_login_i', which is 30 characters. It has the right
value.
This is not a problem with:
- Databases: the same code works with MySQL and PostgreSQL on the 'same'
database.
- Arrays: keys can be longer than 30 characters
So it has to be a 'mssql_fetch_array' bug!
Vincent
--
Edit bug report at http://bugs.php.net/?id=16509&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16509&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16509&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16509&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16509&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16509&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16509&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16509&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16509&r=submittedtwice