602SQL Documentation Index  

wb_get_lob_mode

PHP

integer wb_get_lob_mode(resource cursor)


Parameters

cursor
An open cursor (result of a SQL query) (e.g. result of the wb_exec or wb_psql_execute function.


Description

Retrieves the current mode of reading LOBs from an open cursor. The only possible values are:

The LOB mode from an open cursor may be changed using the wb_set_lob_mode function.



Returns

The current LOB mode of a cursor. Either WB_LOBMODE_DIRECT or WB_LOBMODE_RESOURCE. FALSE if an error occurs (the cursor parameter value is not an open cursor).



Example

Get the LOB reading mode:

$cursor=wb_exec($connection,"SELECT clob_column FROM clob_table WHERE id=1");
if( wb_get_lob_mode($cursor)==WB_LOBMODE_RESOURCE ) echo "Mode WB_LOBMODE_RESOURCE\n";
else echo "Mode WB_LOBMODE_DIRECT";