We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you have a stored procedure declared like this:
create procedure proc() begin declare v int default 123; set @v = v; end;
Dolt:
tmp2/main*> select @v; +------+ | @v | +------+ | NULL | +------+ 1 row in set (0.00 sec) tmp2/main*> call proc(); + | + | + 1 row in set (0.00 sec) tmp2/main*> select @v; +------+ | @v | +------+ | NULL | +------+ 1 row in set (0.00 sec)
MySQL:
mysql> select @v; +------+ | @v | +------+ | NULL | +------+ 1 row in set (0.0004 sec) mysql> call proc(); Query OK, 0 rows affected (0.0007 sec) tmp2/main*> select @v; +-----+ | @v | +-----+ | 123 | +-----+ 1 row in set (0.0004 sec)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When you have a stored procedure declared like this:
Dolt:
MySQL:
The text was updated successfully, but these errors were encountered: