1
0
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:
Anatol Belski
2017-12-22 16:41:46 +01:00
parent d7cc1ce58f
commit 77b0e2fd3f

View File

@@ -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;
}
}