|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2009-04-17 13:09 UTC] netvbonline at yahoo dot co dot uk
  [2009-08-11 16:29 UTC] tyler dot reese at taqua dot com
  [2020-10-05 13:25 UTC] cmb@php.net
 
-Status:      Open
+Status:      Duplicate
-Assigned To:
+Assigned To: cmb
  [2020-10-05 13:25 UTC] cmb@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 20:00:01 2025 UTC | 
Description: ------------ After executing a "SELECT" SQL query and then doing an odbc_fetch_array(), field names longer than 31 characters gets truncated. Reproduce code: --------------- <?php $link = odbc_connect('MYSQL', '', ''); // Connect to MySQL $res = odbc_exec($link, 'select * from test'); var_dump(odbc_fetch_array($res)); $link = odbc_connect('Access', '', ''); // Connect to Microsoft Access $res = odbc_exec($link, 'select * from test'); var_dump(odbc_fetch_array($res)); ?> Expected result: ---------------- Assuming that a field name within the table `test` is '1234567890123456789012345678901234567890', expected result maybe like: array(1) { ["1234567890123456789012345678901234567890"]=> string(1) "1" } array(1) { ["1234567890123456789012345678901234567890"]=> string(1) "1" } Actual result: -------------- array(1) { ["1234567890123456789012345678901"]=> string(1) "1" } array(1) { ["1234567890123456789012345678901"]=> string(1) "1" }