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

the row result is not printed when there is IF clause used in the stored procedure when using sql server #6918

Open
jennifersp opened this issue Oct 31, 2023 · 0 comments
Labels
bug Something isn't working sql server Issues related to the built in SQL server sql Issue with SQL

Comments

@jennifersp
Copy link
Contributor

Cause of the issue: the current IfElseBlock{}.Schema() method returns nil, which is used to send the field information over the wire.
Repro in Dolt:

mysql> CREATE PROCEDURE p() IF 0 = 0 THEN SELECT 1; END IF#
Query OK, 0 rows affected (0.02 sec)

mysql> CALL p#
Query OK, 1 row affected (0.00 sec)

MySQL:

mysql> CREATE PROCEDURE p() IF 0 = 0 THEN SELECT 1; END IF#
Query OK, 0 rows affected (0.00 sec)

mysql> CALL p;
    -> #
+---+
| 1 |
+---+
| 1 |
+---+
1 row in set (0.00 sec)

Query OK, 0 rows affected (0.00 sec)

@jennifersp jennifersp added bug Something isn't working sql Issue with SQL sql server Issues related to the built in SQL server labels Oct 31, 2023
nicktobey added a commit to dolthub/go-mysql-server that referenced this issue Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working sql server Issues related to the built in SQL server sql Issue with SQL
Projects
None yet
Development

No branches or pull requests

1 participant