-
Notifications
You must be signed in to change notification settings - Fork 61
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
MySQL EXTRACTVALUE not working with special characters #396
Comments
could we convert |
@dbu I'm afraid currently doing that, because maybe it will behave differently in MySQL 8 or in future MySQL versions. |
in the mid-term i hope to release a version 2 of the jackalope ecosystem. mostly with cleanups like parameter and return type declarations and other such modern PHP improvements. that might be a good opportunity to do BC breaking changes. do you think we could do something here to make things work reliably? |
We didn't yet stumble over it in a project, and it was never reported to use yet, so this issue isnt important for us at current state. I did just stumble over it while writing the tests for the sql injection issue that mysql behave here strange. But if it is easy possible to write |
thanks. yeah lets keep it open in case somebody runs into problems because of this. |
Currently the XML Property names are written the following way into MySQL:
another valid xml struct for this would be
As mysql itself seems not convert
"
to"
it currently can not match in the query. Example the following SQL will not work in both cases:Currently a test testing a property named with
val"ue"
is skipped because of this.jackalope-doctrine-dbal/tests/Jackalope/Transport/DoctrineDBAL/ClientTest.php
Lines 541 to 543 in f3107ac
I also created a stackoverflow question how this could maybe be solved: https://stackoverflow.com/questions/70339679/use-extractvalue-against-correctly-escaped-xml-attribute-value-in-mysql
The text was updated successfully, but these errors were encountered: