Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"#2014 - Commands out of sync; you can't run this command now" returned when stored procedure does not return any result set #14614

Closed
javide opened this issue Sep 13, 2018 · 5 comments
Assignees
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
Milestone

Comments

@javide
Copy link

javide commented Sep 13, 2018

Describe the bug

In phpMyAdmin 4.8.3 if you call a stored procedure that contains a SELECT statement, when this SELECT does not return a result set, this error is displayed:
#2014 - Commands out of sync; you can't run this command now

When calling the same stored procedure from the mysql command line the expected output is returned instead:

Empty set (0.70 sec)
Query OK, 0 rows affected (0.70 sec)

To Reproduce

Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Server configuration

  • Operating system:
  • Web server:
  • Database version: Server version: 5.5.5-10.1.19-MariaDB MariaDB Server
  • PHP version:
  • phpMyAdmin version: phpMyAdmin 4.8.3

Client configuration

  • Browser:
  • Operating system:

Additional context

Add any other context about the problem here.

@williamdes
Copy link
Member

Stackoverflow: https://stackoverflow.com/a/20435243/5155484

@williamdes
Copy link
Member

williamdes commented Sep 13, 2018

@javide I remember having this issue, can you please explain how to reproduce this issue ?
Maybe you can try on https://demo.phpmyadmin.net/QA_4_8/ ?

@williamdes williamdes added the question Used when we need feedback from the submitter or when the issue is a question about PMA label Oct 4, 2018
@williamdes williamdes added Bug A problem or regression with an existing feature and removed question Used when we need feedback from the submitter or when the issue is a question about PMA labels Mar 31, 2019
@williamdes
Copy link
Member

Create the procedure

DELIMITER $$
CREATE PROCEDURE `abc`()
    NO SQL
(SELECT * FROM mysql.user WHERE 0)
UNION
(SELECT * FROM mysql.user WHERE 0)$$
DELIMITER ;

And run

CALL abc()

@williamdes williamdes added this to to be fixed soon in issues Apr 29, 2019
@williamdes williamdes changed the title "#2014 - Commands out of sync; you can't run this command now" returned when stored procedure does not return any result set #2014 - Commands out of sync; you can't run this command now" returned when stored procedure does not return any result set Apr 29, 2019
@williamdes williamdes self-assigned this Apr 29, 2019
williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Apr 29, 2019
…his command now" returned when stored procedure does not return any result set

Fixes: phpmyadmin#14614
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Apr 29, 2019
…log'] = true;

Fixes: phpmyadmin#14614
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes added the has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete label Apr 29, 2019
@williamdes
Copy link
Member

williamdes commented Apr 29, 2019

williamdes added a commit to williamdes/phpmyadmintest that referenced this issue Apr 29, 2019
…log'] = true;

Fixes: phpmyadmin#14614
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes williamdes changed the title #2014 - Commands out of sync; you can't run this command now" returned when stored procedure does not return any result set "#2014 - Commands out of sync; you can't run this command now" returned when stored procedure does not return any result set Apr 29, 2019
@williamdes williamdes moved this from to be fixed soon to ready to merge in issues Apr 29, 2019
@williamdes williamdes added this to the 4.8.6 milestone May 1, 2019
williamdes added a commit that referenced this issue May 1, 2019
…nd now" returned when stored procedure does not return any result set

Fixes: #14614
Pull-request: #15234
Signed-off-by: William Desportes <williamdes@wdes.fr>
williamdes added a commit that referenced this issue May 1, 2019
Signed-off-by: William Desportes <williamdes@wdes.fr>
issues automation moved this from ready to merge to Closed May 1, 2019
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature has-pr An issue that has a pull request pending that may fix this issue. The pull request may be incomplete
Projects
issues
  
Closed
Development

No branches or pull requests

2 participants