mirror of
https://github.com/php/php-src.git
synced 2026-04-11 10:03:18 +02:00
Fix wrong return value for fail case in set attribute handler in pdo_odbc
This commit is contained in:
@@ -347,7 +347,7 @@ static int odbc_handle_set_attr(pdo_dbh_t *dbh, zend_long attr, zval *val)
|
||||
strcpy(H->einfo.last_err_msg, "Unknown Attribute");
|
||||
H->einfo.what = "setAttribute";
|
||||
strcpy(H->einfo.last_state, "IM001");
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user