Date: 06/19/98
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] News group"
- Previous message: andi: "[PHP-DEV] CVS update: php3"
- In reply to: Andi Gutmans: "[PHP-DEV] Re: Reported bug in database"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] odbc_result() behaviour"
- Reply: Zeev Suraski: "Re: [PHP-DEV] odbc_result() behaviour"
- Reply: Andi Gutmans: "[PHP-DEV] Re: odbc_result() behaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Rasmus Lerdorf: "Re: [PHP-DEV] News group"
- Previous message: andi: "[PHP-DEV] CVS update: php3"
- In reply to: Andi Gutmans: "[PHP-DEV] Re: Reported bug in database"
- Next in thread: Zeev Suraski: "Re: [PHP-DEV] odbc_result() behaviour"
- Reply: Zeev Suraski: "Re: [PHP-DEV] odbc_result() behaviour"
- Reply: Andi Gutmans: "[PHP-DEV] Re: odbc_result() behaviour"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

