mysql_set_server_option(3)

πŸ“¦
version 13.0.2 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, this is mysql_set_server_option(3) from MariaDB Connector/C. It's the function that sets a server option. That's the whole name vibe. πŸ’…

πŸ“œ SYNOPSIS πŸ“œ

#include <mysql.h>

int mysql_set_server_option(MYSQL * mysql,
                            enum enum_mysql_set_option);

That's the exact shape, no cap. 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

Sets server option. Literally that's the description. It's giving short but powerful. πŸ”₯

πŸŽ€ PARAMETERS πŸŽ€

  • mysql β€” a mysql handle, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3). So like, don't just hand it any random pointer, bestie. It needs the handle from those calls. πŸ’–
  • enum_mysql_set_option β€” server option (see below) Server option, which can be one of the following values:
    • MYSQL_OPTION_MULTI_STATEMENTS_OFF β€” Disables multi statement support. It's giving "one statement at a time, we're being careful." πŸ™ˆ
    • MYSQL_OPTION_MULTI_STATEMENTS_ON β€” Enable multi statement support. Yes bestie, it's "Enable," not "Enables" β€” exact wording, periodt. πŸ”₯

πŸ’… RETURN VALUE πŸ’…

Returns zero on success, non-zero on failure. So zero is the slay. Non-zero is the "oop." 😭

🌈 SEE ALSO 🌈


Version 3.4, and this manual is mysql_set_server_option(3) β€” mwah πŸ’–

πŸ“¦ where this page comes from