[CONC-217] Unsuccessful mariadb_stmt_execute_direct makes connection unesuful Created: 2016-11-26 Updated: 2016-11-26 |
|
| Status: | Open |
| Project: | MariaDB Connector/C |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Lawrin Novitsky | Assignee: | Georg Richter |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows(probably does not matter), 10.2 server branch, master C/C branch |
||
| Description |
|
static int conc_217(MYSQL *mysql) { MYSQL_STMT *stmt= mysql_stmt_init(mysql); int rc= mariadb_stmt_execute_direct(stmt, "SELECT * from non_existent", -1); FAIL_IF(rc != 1, "Error expected"); /* No matter we do after this, nothing will work on this connection */ mysql_stmt_close(stmt); check_mysql_rc(mysql_query(ma, "drop table if exists t_count"), mysql); return OK; } |