note 79354 added to function.odbc-field-name
| From: | NoEgzit at osu1 dot php dot net | Date: | Thu, 22 Nov 2007 14:23:40 +0000 |
| Subject: | note 79354 added to function.odbc-field-name | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-132484@lists.php.net to get a copy of this message | ||
If you really need more than 31 characters here's what you can do:
open php5.x.x/ext/odbc/php_odbc_includes.h in an editor like notepad++
change 32 by a greater value in
typedef struct odbc_result_value {
char name[32];
char *value;
SDWORD vallen;
SDWORD coltype;
} odbc_result_value;
and recompile php.
I did it with char name[64] cause I have column names like "0214_1_VD_Type d'exploitation
Type d'opération (Niveau 1)" [I didn't choose this stupid name it comes from
Eccairs project]
and rebuild php with the method given here http://www.php.net/manual/en/install.windows.building.php
and http://elizabethmariesmith.com/2006/11/09/
compiling-php52-on-windows-with-net-toolchain-is-it-even-possible/
with visual C++ express edition.
----
Server IP: 217.174.196.197
Probable Submitter: 213.174.103.21
----
Manual Page -- http://www.php.net/manual/en/function.odbc-field-name.php
Edit -- https://master.php.net/note/edit/79354
Del: integrated -- https://master.php.net/note/delete/79354/integrated
Del: useless -- https://master.php.net/note/delete/79354/useless
Del: bad code -- https://master.php.net/note/delete/79354/bad+code
Del: spam -- https://master.php.net/note/delete/79354/spam
Del: non-english -- https://master.php.net/note/delete/79354/non-english
Del: in docs -- https://master.php.net/note/delete/79354/in+docs
Del: other reasons-- https://master.php.net/note/delete/79354
Reject -- https://master.php.net/note/reject/79354
Search -- https://master.php.net/manage/user-notes.php