mysql_stmt_send_long_data(3)
π mysql_stmt_send_long_data π
okay bestie, so this is a page from the MariaDB Connector/C manual set, and it's literally about yeeting your data at the server in lil bite-sized pieces instead of one giant blob. iconic behavior, tbh.
β¨ Name β¨
mysql_stmt_send_long_data β sends data in chunks π
β¨ Synopsis β¨
#include <mysql.h>
my_bool mysql_stmt_send_long_data(MYSQL_STMT * stmt,
unsigned int,
const char * data,
unsigned long);
β¨ Description β¨
This function lets you send parameter data to the server in pieces (we call 'em chunks, bestie, it's giving charcuterie board π§). Why would you ever do that? Well, say the size of a blob is bigger than the size of max_allowed_packet β yeah, that's the moment. π
You can call this function multiple times to send the parts of a character or binary data value for a column, and that column has to be one of the TEXT or BLOB datatypes. no cap.
β¨ Parameter β¨
stmtβ a statement handle, which was previously allocated bymysql_stmt_init(3). πparam_noβ indicates which parameter to associate the data with. Parameters are numbered beginning with0. (yes bestie, zero-indexed, we live in a society π)dataβ a buffer containing the data to send. πΈlongβ size of the data buffer.
β¨ Return value β¨
Returns zero on success, nonzero if an error occurred. that's it, that's the vibe check π
β¨ Notes β¨
mysql_stmt_send_long_data()must be called beforemysql_stmt_execute(3). like, before. do not skip ahead, bestie, it will not go well π- bound variables for this column will be ignored when calling
mysql_stmt_execute(3). yeah, they just get ghosted π»
β¨ See also β¨
mysql_stmt_execute(3). π¦
and that's the whole page, bestie!! this was Version 3.4 of the MariaDB Connector/C docs β tysm for reading, mwah, slay, periodt πβ¨π
π¦ where this page comes from
- alpine 3.22: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.23: mariadb-doc 11.4.13-r0 Β· GPL-2.0-or-later
- alpine 3.24: mariadb-doc 11.8.9-r0 Β· GPL-2.0-only
- arch rolling: mariadb 13.0.2-2 Β· GPL-2.0-only
- arch rolling: mariadb-lts 12.3.3-2 Β· GPL-2.0-only
- centos-stream 10: mariadb-connector-c-doc 3.4.4-2.el10 Β· LGPL-2.1-or-later
- debian trixie: libmariadb-dev 1:11.8.6-0+deb13u1 Β· GPL-2.0-only
- fedora 43: mariadb-connector-c-doc 3.4.5-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 43: mariadb-connector-c-doc 3.4.9-2.fc43 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- fedora 44: mariadb-connector-c-doc 3.4.8-3.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01
- fedora 44: mariadb-connector-c-doc 3.4.9-2.fc44 Β· LGPL-2.1-or-later AND PHP-3.0 AND PHP-3.01 AND LicenseRef-Fedora-Public-Domain
- nixpkgs unstable: mariadb-server 11.8.8
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: libmariadb-devel 3.4.9-160000.1.1 Β· LGPL-2.1-or-later
- ubuntu questing: libmariadb-dev 1:11.8.3-1build1
- ubuntu resolute: libmariadb-dev 1:11.8.6-5 Β· GPL-2.0-only
- ubuntu resolute: libmariadb-dev 1:11.8.6-5ubuntu0.1 Β· GPL-2.0-only
- ubuntu stonking: libmariadb-dev 1:11.8.9+ds-4ubuntu2 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms