[PHP-DEV] odbc_result() behaviour From: Andreas Karajannis (Andreas.Karajannis <email protected>)
Date: 06/19/98

I think there is some clarification concerning odbc_result()
behaviour needed. When I implemented ada_result() aka odbc_result(),
I decided to have some fieldtypes printed directly. This was for two
reasons:
- LONG fields, as the name indicates, can be really long ;-)
- in addition, they may contain binary data.
LONG fields are also, from a database point of view something special:
you canīt do very much with them except inserting / retrieving.

Then there were people complaining about this behaviour, mainly
in conjunction with Access memo fields that are of type LONGVARBINARY
(donīt know why M$ decided to declare them this way).

So I introduced odbc_longreadlen() and odbc_binmode() as well as
corresponding ini vars to control odbc_result() and odbc_fetch_into()
behaviour. So anybody who wants his memo fields returned can set
uodbc.defaultlrl = 4096
uodbc.defaultbinmode = 1
in php3.ini.
BTW: it's all in the docs ;-)

If you think that it would help consistency, I can change the module
to default to this behaviour.

-Andreas

-- 
Andreas Karajannis
GMD National Research Center for Information Technology
Schloss Birlinghoven, D-53754 Sankt Augustin
Phone +49 2241 142948