-
Notifications
You must be signed in to change notification settings - Fork 25
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
foreach error on 10.0.22-MariaDB #1
Comments
Similar issue on my side: CALL
MySQL version : Percona 5.6.23-72.1 -- no error ; |
Do you know what it might be ? |
I think we have the same error, see. Do you have any suggestions @shlomi-noach? |
I've tested this in 5.7 and gotten similar errors. Looking more closely at 5.6, I tested each version of community server between 5.6.22 and 5.6.27, and 5.6.27 was the first version that started throwing the error. So it appears to be a change between 5.6.26 and 5.6.27 that broke QueryScript. |
I can also confirm:
I'm looking into this. I cannot see an obvious hint in http://dev.mysql.com/doc/relnotes/mysql/5.6/en/news-5-6-27.html |
|
We're also experiencing the problem in mysql 5.5 (5.5.46) |
Seems like MySQL introduced a bug in local routine variables. These variables:
Are assigned via:
With these legit values,
and their values are immediately corrupted. I'm looking to see whether I can overcome this bug, but it is very disconcerting as this coding style is all over the place. |
This seems to work around the problem:
|
O-M-G this is everywhere. This bug is creepy and happens on multiple occasions of |
Please find new |
Thanks @shlomi-noach |
Is it confirmed the problem is solved on mentioned platforms? |
I can confirm that the problem is solved on all mentioned platforms that I tested. The one I did not test is MariaDB 1.0.22. I tested the following versions: MySQL Community Server 5.5.46 I was able to install common_schema 2.3 on all of those versions with no errors, and I was able to successfully run the following QueryScript test: call common_schema.run(" |
I can confirm installation works too. Thank you for the fix. One little thing I mentioned is weird symbols in sql-file of release. Take a look for instance on line 13466. |
also works |
@genuss thanks - can you kindly open a new issue for the strange chars? Probably my mac's version of |
thanks all, closing this issue |
Executing this:
CALL foreach(
"SELECT TABLE_SCHEMA
FROM INFORMATION_SCHEMA.TABLES WHERE table_name LIKE 'devices'",
"SELECT
username
,group
,acl_group_id
FROM ${1}.users");MySQL Version : 10.0.21-MariaDB ---> works fine
MySQL Version : 10.0.22-MariaDB ---> error:
1 queries executed, 0 success, 1 errors, 0 warnings
Query: CALL foreach( "SELECT TABLE_SCHEMA FROM INFORMATION_SCHEMA.TABLES WHERE table_name LIKE 'devices'", "SELECT
username
, `grou...Error Code: 1644
QueryScript error: [Unsupported token: "startg"] at 7: "SELECT
username
,group
,acl_group_id
FROM abm.users "The text was updated successfully, but these errors were encountered: