-
Notifications
You must be signed in to change notification settings - Fork 95
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
Unable to execute query for trigger #154
Comments
You are right, it has proven to be a source of bugs and confusion. I can no longer remember why it was included in the first place. I vaguely recall the use-case being that one should be able to slurp in a SQL file of commands and execute them via Ruckusing. But I think at this point its causing more harm than good. Anyone else want to weigh in? |
Performing multiple queries may be usefull to load initial dump from PhpMyadmin for example. As for me, this feature should be implemented in special method like |
This |
I agree with this sentiment, but I don't really have a horse in this
|
Any idea when can this be fixed? I'd like to update my composer library to the latest version as it have a lot of improvements and bug fixed. |
hi. it is a start but... |
|
anyways, nice job @silverslice. thank you for taking from your time to fix this. i was too busy to help. next time maybe. @ruckus, |
Thanks everyone for your comments, its really appreciated. Thank you @silverslice for your PR. It sounds like the best course of action is:
If I a mistaken and there is BC-breakage then please chime in and I will do a 2.x release. Sorry if I am being obtuse and the answer is staring me in the face. Thank you again! |
After updating from version 0.1.2 to latest dev-master executing queries like this
does not work anymore.
Cause:
Ruckusing_Migration_Base::split_query
This feature is useless. Having multiple sql queries inside the same string. Writing migrations is the developer job and we know that (at least) mysql doesn't support it. Why should you? This will be the source of many bugs.
Some examples where this function will fail:
triggers, stored procedures, etc.
query like:
insert into table set field = 'string \'quote1; quote2\'';
The text was updated successfully, but these errors were encountered: