1mysql_stmt_send_long_data(3)  MariaDB Connector/C mysql_stmt_send_long_data(3)
2
3
4
5   Name
6       mysql_stmt_send_long_data - Sends data in chunks
7
8   Synopsis
9              #include <mysql.h>
10
11              my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt,
12                                                unsigned int,
13                                                const char * data,
14                                                unsigned long);
15
16   Description
17       Allows  sending  parameter  data  to  the server in pieces (or chunks),
18       e.g. if the size of a blob exceeds the size of max_allowed_packet size.
19       This function can be called multiple times to send the parts of a char‐
20       acter or binary data value for a column, which must be one of the  TEXT
21       or BLOB datatypes.
22
23   Parameter
24       • stmt  -  a  statement  handle,  which  was  previously  allocated  by
25         mysql_stmt_init(3).
26
27       • param_no - indicates which parameter to associate the data with.  Pa‐
28         rameters are numbered beginning with 0.
29
30       • data - a buffer containing the data to send.
31
32       • long - size of the data buffer.
33
34   Return value
35       Returns zero on success, nonzero if an error occurred.
36
37   Notes
38       • mysql_stmt_send_long_data()  must  be  called  before mysql_stmt_exe‐
39         cute(3).
40
41       • bound  variables  for  this  column  will  be  ignored  when  calling
42         mysql_stmt_execute(3).
43
44   See also
45mysql_stmt_execute(3).
46
47
48
49Version 3.2.2                                     mysql_stmt_send_long_data(3)
Impressum