mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Fix error code checking for mysql_stmt_attr_set. There
is a test that checks this.
This commit is contained in:
parent
80f629ed9f
commit
eea0660def
1 changed files with 5 additions and 1 deletions
|
@ -2128,7 +2128,11 @@ PHP_FUNCTION(mysqli_stmt_attr_set)
|
|||
}
|
||||
|
||||
mode = mode_in;
|
||||
if ((rc = mysql_stmt_attr_set(stmt->stmt, attr, (void *)&mode))) {
|
||||
#if !defined(MYSQLI_USE_MYSQLND)
|
||||
if (mysql_stmt_attr_set(stmt->stmt, attr, (void *)&mode)) {
|
||||
#else
|
||||
if (FAIL == mysql_stmt_attr_set(stmt->stmt, attr, (void *)&mode)) {
|
||||
#endif
|
||||
RETURN_FALSE;
|
||||
}
|
||||
RETURN_TRUE;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue