Main Page
Modules
Namespaces
Classes
Files
db
::
Table
apply_range
apply_seek
begin_seek
cancel
clear_range
close
create
edit
field_desc
get_database
get_insert_flags
get_remove_flags
get_row_id
get_table_id
get_table_mode
index_desc
insert
is_bof
is_eof
is_opened
lock_row
lock_row
lock_row
lock_row
open
operator=
post
refresh
remove
seek
seek_first
seek_last
seek_next
seek_prior
set_insert_flags
set_range_end
set_range_start
set_remove_flags
set_sort_order
Table
Table
~Table
int db::CursorRowAccessor::truncate_blob
(
int
field
,
db_len_t
size
)
[virtual, inherited]
Truncate BLOB (Binary Large OBject) field to
size
.
Parameters:
field
The index of the field that should be written to. Use
find_field
to obtain this index. (>=0, <# of fields) (required)
size
The size to reduce the BLOB to in bytes. (>=0)
Returns:
size of BLOB in bytes when successful
DB_EFIELD
If
field
is not within required range, or if
field
is not of type
FIELD_TYPE_BLOB
DB_EINVAL
If
size
< 0.
DB_ESTATE
If table not opened, or table not in
DB_TABLE_BROWSING
mode.
See also:
write_blob
,
write_blob_final
,
read_blob
,
get_blob_size
Implements
db::RowAccessor
.
Copyright © 2005-2008 ITTIA®. All rights reserved.