|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-11-28 01:44 UTC] mlr at interchain dot nl
I have the following situation, I execute the following select: select 1 as '123456789 123456789 123456789 123456789' from table; when I display the field names the first 32 characters are ok, the rest of the string displayed are strange characters. Kind regards Marco Laponder (mlr@interchain.nl) PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
You probably don't know the database, as the DBMS is developed in our company (is called UNIMS) and we have written our own ODBC driver. I have checked what our database returns and that is ok (no strange characters). I also looked in the php sources, and I think the problem is in the following struct (php_odbc.h) : typedef struct odbc_result_value { char name[32]; char *value; long int vallen; SDWORD coltype; } odbc_result_value; But I am not a PHP-developer (yet ;-) ) Kind regards MarcoHere it is: <? $cnx = odbc_connect("unims","ecw","inter00"); $query = "select 1 as '123456789 123456789 123456789 123456789 ' from bedryf;"; $qid = odbc_exec($cnx,$query); echo odbc_field_name($qid,1); odbc_close($cnx); ?>