I have discovered that results coming from my SQL Server are having the field names truncated:
$query = "SELECT some_really_really_long_field_name FROM ..."
...
print_r($row);
array(
'some_really_really_long_field_n' => 'value'
)
Does anyone know how to avoid this behaviour?
I think the database driver is ADODB.
So you don't have to count: the field names are being truncated to 31 characters.
SQL Server doesn't seem to mind the long field names in itself, so I can only presume that there is a char[32] string buffer somewhere in the ADODB driver which can't contain the long names.