1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-06 17:07:12 +02:00

Add MariaDB Connector/C as a built-in alternative (v3.2.3).

This commit is contained in:
Sandu Liviu Catalin
2021-09-21 20:59:01 +03:00
parent f192767853
commit b4bf96ce4b
372 changed files with 90819 additions and 11 deletions

View File

@ -0,0 +1,42 @@
.\" Automatically generated by Pandoc 2.5
.\"
.TH "mysql_stmt_affected_rows" "3" "" "Version 3.2.2" "MariaDB Connector/C"
.hy
.SS Name
.PP
mysql_stmt_affected_rows \- Returns the number of affected rows from
previous executed prepared statement
.SS Synopsis
.IP
.nf
\f[C]
#include <mysql.h>
my_ulonglong mysql_stmt_affected_rows(MYSQL_STMT * stmt);
\f[R]
.fi
.SS Description
.PP
Returns the number of affected rows by the last prepared statement
associated with mysql, if the operation was an \[lq]upsert\[rq] (INSERT,
UPDATE, DELETE or REPLACE) statement, or \-1 if the last prepared
statement failed.
.SS Parameter
.IP \[bu] 2
\f[C]stmt\f[R] \- a statement handle, which was previously allocated by
[mysql_stmt_init()](mysql_stmt_init().]]
.SS Notes
.IP \[bu] 2
When using \f[C]UPDATE\f[R], MariaDB will not update columns where the
new value is the same as the old value.
This creates the possibility that \f[C]mysql_stmt_affected_rows()\f[R]
may not actually equal the number of rows matched, only the number of
rows that were literally affected by the query.
.IP \[bu] 2
The \f[C]REPLACE\f[R] statement first deletes the record with the same
primary key and then inserts the new record.
This function returns the number of deleted records in addition to the
number of inserted records.
.SS See Also
.IP \[bu] 2
\f[B]mysql_stmt_insert_id(3)\f[R]