mysql_stmt_more_results(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

✨ mysql_stmt_more_results πŸ’…

okay so bestie, welcome to the MariaDB Connector/C manual, and today's main character is mysql_stmt_more_results β€” she's the one who tells you whether there are more result sets waiting for you from a prepared statement you already ran. yes, more. as in, plural. as in, the plot thickens. πŸŽ€


🌸 Name

mysql_stmt_more_results β€” indicates if one or more results from a previously executed prepared statement are available

πŸ¦‹ Synopsis

#include <mysql.h>

my_bool mysql_stmt_more_results(MYSQL_STMT * stmt);

πŸ’– Description

She indicates if one or more result sets are available from a previous call to mysql_stmt_execute(3). that's it, that's the whole vibe check. ✨

πŸŽ€ Parameter

  • stmt β€” a statement handle, which was previously allocated by mysql_stmt_init() and executed by mysql_stmt_execute(3). like, she's gotta be a real one who's already been through init and execute, no shortcuts bestie 🫢

πŸ‘‘ Notes

  • Multiple result sets can be obtained by calling a stored procedure. yes, stored procs are that girl and they can hand you back a whole stack of result sets. 🌈
  • Executing concatenated statements is not supported in prepared statement protocol. so don't try to be slick and smoosh multiple statements together in a prepared statement, because she will not play that game. πŸ’€

⭐ Return value

Returns 1 if more result sets are available, otherwise zero. one means "there's more, keep going", zero means "that's a wrap, we're done here". periodt. πŸ’…

πŸ”₯ See also


Version 3.4 of the MariaDB Connector/C manual, bestie β€” that's the whole page. go forth and fetch those extra result sets, you absolute icon. mwah πŸ’–πŸŒΈπŸ¦‹βœ¨

mysql_stmt_more_results(3)

πŸ“¦ where this page comes from