[CONC-212] mariadnb_stmt_execute_direct in combination with mysql_real_query cause "out of sync" Created: 2016-11-08 Updated: 2023-12-22 |
|
| Status: | Stalled |
| 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: |
server from 10.2 branch, Connector/C from master branch |
||
| Description |
|
Here is minimal testcase I have come up with stmt = mysql_stmt_init(ma); mariadb_stmt_execute_direct(stmt, "SELECT 1,2", strlen("SELECT 1,2")); mariadb_stmt_execute_direct(stmt, "SELECT 1,2", strlen("SELECT 1,2")); mysql_real_query(ma, "drop table if exists t_count", strlen("drop table if exists t_count")); mysql_real_query(ma, "create table t_count (a int)", strlen("create table t_count (a int)")); mysql_stmt_close(stmt); The error occurs on 2nd mysql_real_query. Moving mysql_stmt_close(stmt); above them changes nothing. Removing one of mariadb_stmt_execute_direct eliminates error. |
| Comments |
| Comment by Lawrin Novitsky [ 2016-11-09 ] |
|
If substitute mariadb_stmt_direct_execute with (mysql_stmt_prepare + execute), the error is "No data supplied for parameters in prepared statement" |
| Comment by JiraAutomate [ 2023-12-22 ] |
|
Automated message: |