- Patch #38889 by rkerr: db_error and db_affected_rows did not work properly in presence of multiple database connections.