-
Notifications
You must be signed in to change notification settings - Fork 26
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
SQL String function LOWER() does not perform on result of PREG_REPLACE() #18
Comments
I tried this:
|
I can confirm @ytez solution seems to be working on MySQL 5.1.73 |
@proditis Thanks for your checking ! In addition, I tested the field type of '_start_nume' by following:
It looks like PREG_REPLACE returns VARBINARY data on my environment (MySQL 5.6.23).
https://dev.mysql.com/doc/refman/5.7/en/string-functions.html#function_lower |
Then, the real question is: is it correct that PREG_REPLACE returns VARBINARY? |
SQL Functions LOWER() and UPPER() have no effect on the result returned by PREG_REPLACE().
See the result of this:
SELECT
lower(preg_replace('/(Editura) ?/','','Editura Corint')) as _start_nume,
lower('Editura Corint') as _nume
The text was updated successfully, but these errors were encountered: