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
Currently the execute function splits the query string given by semi colons, see: https://github.com/ruckus/ruckusing-migrations/blob/master/lib/Ruckusing/Adapter/MySQL/Base.php#L325
But that doesn't take into consideration semicolons inside of quotes that should not be treated this way. E.g.
insert into a(id,name) values(1,'test'); insert into b(id,name) values(1,'another test');
That should work this way, however:
insert into a(id,name) values(1,'test;test')
should not be split! This should apply to semicolons inside single and double quotes.
The text was updated successfully, but these errors were encountered:
Added new method to split_query used by execute method, complete with…
9144e55
… test that it splits properly when semicolons exist inside strings. ref pull ruckus#120 and issue ruckus#123 on github
No branches or pull requests
Currently the execute function splits the query string given by semi colons, see: https://github.com/ruckus/ruckusing-migrations/blob/master/lib/Ruckusing/Adapter/MySQL/Base.php#L325
But that doesn't take into consideration semicolons inside of quotes that should not be treated this way.
E.g.
That should work this way, however:
should not be split!
This should apply to semicolons inside single and double quotes.
The text was updated successfully, but these errors were encountered: