Bug #80961 | mysql_stmt_execute() will block if table empty | ||
---|---|---|---|
Submitted: | 5 Apr 2016 14:45 | Modified: | 6 Apr 2016 18:06 |
Reporter: | chen taosheng | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: C API (client library) | Severity: | S3 (Non-critical) |
Version: | 5.7.11 | OS: | Windows (windows 7) |
Assigned to: | CPU Architecture: | Any | |
Tags: | CURSOR_TYPE_READ_ONLY, mysql_stmt_execute |
[5 Apr 2016 14:45]
chen taosheng
[6 Apr 2016 18:06]
MySQL Verification Team
Thank you for the bug report. It hangs only with server 5.7.XX and not repeatable with server 5.6.XX even with the client compiled against 5.7 client library. c:\tmp>c:\dbs\5.6\bin\mysql -uroot -p testdb Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 5.6.29-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select * from test_table; Empty set (0.00 sec) mysql> exit Bye c:\tmp>bug80961.exe Connected to the server: 5.6.29-log Client Info: 5.7.13 prepare, SELECT successful Done!! c:\tmp>c:\dbs\5.7\bin\mysql -uroot --port=3307 -p testdb Enter password: ****** Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 18 Server version: 5.7.11-log MySQL Community Server (GPL) Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> select * from test_table; Empty set (0.00 sec) mysql> exit Bye c:\tmp>bug80961.exe Connected to the server: 5.7.11-log Client Info: 5.7.13 prepare, SELECT successful ^C
[6 Apr 2016 18:12]
MySQL Verification Team
c:\tmp>c:\dbs\5.7\bin\mysql -uroot --port=3307 -p testdb -e "insert into test_table values (1,'a',1,NULL)" Enter password: ****** c:\tmp>bug80961.exe Connected to the server: 5.7.11-log Client Info: 5.7.13 prepare, SELECT successful Done!!