php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12962 odbc field name too long
Submitted: 2001-08-25 23:00 UTC Modified: 2002-07-23 11:34 UTC
Votes:11
Avg. Score:4.6 ± 0.6
Reproduced:11 of 11 (100.0%)
Same Version:2 (18.2%)
Same OS:3 (27.3%)
From: alon at anayadesign dot com Assigned:
Status: Wont fix Package: ODBC related
PHP Version: 4.0.6 OS: win2000
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2001-08-25 23:00 UTC] alon at anayadesign dot com
if I have a field name longer than 31 characters, the 
odbc_field_name function cuts it to 31 characters.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-24 22:47 UTC] kalowsky@php.net
There is really no way to extend this that I can see at this time.  The SQLColAttributes (which populates the field) requires the length to be passed to it.  

This may require a lot more hacking around to implement a longer version.  In the meantime I believe a simple hack of just making the odbc_result_value.name[32] to be a obdc_result_value.name[64] or some higher number.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 06:01:29 2024 UTC