diff --git a/reference/uodbc/functions/odbc-binmode.xml b/reference/uodbc/functions/odbc-binmode.xml index 9f554688f2..b6e3e69712 100644 --- a/reference/uodbc/functions/odbc-binmode.xml +++ b/reference/uodbc/functions/odbc-binmode.xml @@ -13,20 +13,25 @@ intmode - Enables handling of binary column data. ODBC SQL types affected are + Controls handling of binary column data. ODBC SQL types affected are BINARY, VARBINARY, and LONGVARBINARY. The default mode can be set using the uodbc.defaultbinmode &php.ini; directive. - When binary SQL data is converted to character C data, each byte + When binary SQL data is converted to character C data (ODBC_BINMODE_CONVERT), each byte (8 bits) of source data is represented as two ASCII characters. These characters are the ASCII character representation of the number in its hexadecimal form. For example, a binary 00000001 is converted to "01" and a binary 11111111 is converted to "FF". + + + While the handling of BINARY and VARBINARY + columns only depend on the binmode, the handling of LONGVARBINARY + columns also depends on the longreadlen as well: LONGVARBINARY handling @@ -53,11 +58,6 @@ 0 passthru - - ODBC_BINMODE_PASSTHRU - 0 - passthru - ODBC_BINMODE_PASSTHRU >0 @@ -80,6 +80,8 @@ If odbc_fetch_into is used, passthru means that an empty string is returned for these columns. + If odbc_result is used, passthru means that the data are + sent directly to the client (i.e. printed). @@ -95,14 +97,6 @@ If result_id is 0, the settings apply as default for new results. - - - Default for longreadlen is 4096 and - mode defaults to - ODBC_BINMODE_RETURN. Handling of binary long - columns is also affected by odbc_longreadlen. - - @@ -128,6 +122,12 @@ + + + Handling of binary long + columns is also affected by odbc_longreadlen. + + diff --git a/reference/uodbc/functions/odbc-longreadlen.xml b/reference/uodbc/functions/odbc-longreadlen.xml index 4e9ac92b5c..3ba4372665 100644 --- a/reference/uodbc/functions/odbc-longreadlen.xml +++ b/reference/uodbc/functions/odbc-longreadlen.xml @@ -13,7 +13,7 @@ intlength - Enables handling of LONG and LONGVARBINARY columns. + Controls handling of LONG, LONGVARCHAR and LONGVARBINARY columns. The default length can be set using the uodbc.defaultlrl &php.ini; directive. @@ -35,8 +35,8 @@ The number of bytes returned to PHP is controlled by the parameter - length. If it is set to 0, Long column data is passed through to the - client. + length. If it is set to 0, long column data is passed through to the + client (i.e. printed) when retrieved with odbc_result. @@ -53,7 +53,7 @@ &reftitle.notes; - Handling of LONGVARBINARY columns is also affected by + Handling of LONGVARBINARY columns is also affected by odbc_binmode.