-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
LIKE ESCAPE and QueryBuilder::createNamedParameter #32382
Comments
AnalysisQueries which use ? as placeholder are working because the necessary ESCAPE key word is added in the adapters: core/lib/private/DB/AdapterSqlite.php Line 42 in 6b36c56
The regex does not match in case of queries which have been built using createNamesParameter() because :dcValue is used as placeholder. |
With dbal 2.8.0 the escape char can be specified in the like() method - potential fix approach for master: #32372 stable10 uses a different dbal version - we cannot yet update because of php version requirements |
for stable10 we could add ESCAPE within the expression builder like manually |
never the less the tricky part is to make sure the queries which do not use the querybuilder get the proper ESCAPE added |
seems like the easiest fix is to convert all createNamedParameter() into createPositionalParameter() |
Steps to reproduce
Expected behaviour
the record shall be within the result set
Actual behaviour
the record is not in the result set
Server configuration
Database:
all
ownCloud version: (see ownCloud admin page)
10.0.x and master are affected
The text was updated successfully, but these errors were encountered: