mysql_stmt_send_long_data — Send data in chunks

my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt,
                                  unsigned int,
                                  const char * data,
                                  unsigned long);

Allows to send parameter data to the server in pieces (or chunks), e.g. if the size of a blob exceeds the size of max_allowed_packet. This function can be called multiple times to send the parts of a character or binary data value for a column, which must be one of the TEXT or BLOB datatypes.

Parameters

stmt

A statement handle, which was previously allocated by mysql_stmt_init().

param_no

Indicates which parameter to associate the data with. Parameters are numbered beginning with 0.

data

A buffer containing the data to send.

long

size of the data buffer.

Return value

Zero on success, nonzero if an error occured.

[Note]

todo: !!

See also