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

Trigger or routine body could be corrupted on export or editing #12396

Closed
nijel opened this issue Jul 22, 2016 · 1 comment
Closed

Trigger or routine body could be corrupted on export or editing #12396

nijel opened this issue Jul 22, 2016 · 1 comment
Labels
Bug A problem or regression with an existing feature wontfix

Comments

@nijel
Copy link
Contributor

nijel commented Jul 22, 2016

Steps to reproduce

Add trigger:

Trigger name: sqlinj
Definition: set @a='aaa''aaa'
Click "Go".

Then click on "Edit" or "Export"

Edit Result:
set @a='aaa'aaa'

Export Result:
FOR EACH ROW set @a='aaa'aaa'

Expected behaviour

The trigger should still be set @a='aaa''aaa'

Actual behaviour

Quote is truncated.

@nijel nijel added Bug A problem or regression with an existing feature wontfix labels Jul 22, 2016
@nijel
Copy link
Contributor Author

nijel commented Jul 22, 2016

This is known MySQL/MariaDB bug, we have no means to fix this (there is no way to tell what was the body originally).

See reports there:

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature wontfix
Projects
None yet
Development

No branches or pull requests

1 participant