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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: alon at anayadesign dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Tue Oct 08 15:01:27 2024 UTC