sqldata/sqlociapi.cpp
// Get the length of LOB column in the open cursor 
Get the length of LOB column in the open cursor
Get the length of LOB column in the open cursor
int SqlOciApi::GetLobLength(size_t row, size_t column, size_t *length)
{
	if(_cursor_cols == NULL || row >= _cursor_allocated_rows || column >=_cursor_cols_count || _ociLobGetLength2 == NULL)
		return -1;
	OCILobLocator *loc = ((OCILobLocator**)_cursor_cols[column]._data)[row];
	oraub8 len = 0;
	int rc = _ociLobGetLength2(_svchp, _errhp, loc, &len);
	if(rc < 0)
		SetError();
	if(length != NULL)
		*length = (size_t)len;
	return rc;
}
int SqlOciApi :: GetLobLength ( size_t row , size_t column , size_t * length ) { if ( _cursor_cols == NULL || row >= _cursor_allocated_rows || column >= _cursor_cols_count || _ociLobGetLength2 == NULL ) return -1 ; OCILobLocator * loc = ( ( OCILobLocator * * ) _cursor_cols [ column ] . _data ) [ row ] ; oraub8 len = 0 ; int rc = _ociLobGetLength2 ( _svchp , _errhp , loc , & len ) ; if ( rc < 0 ) SetError ( ) ; if ( length != NULL ) * length = ( size_t ) len ; return rc ; }
Get the length of LOB column in the open cursor
Get the length of LOB column in the open cursor
// Size is in bytes for BLOB, in characters for CLOB