[MDEV-7889] Like operator does not work as in other databases Created: 2015-03-31 Updated: 2015-03-31 Due: 2015-04-30 Resolved: 2015-03-31 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.1.3 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Philip orleans | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Description |
|
This is a bug that makes it impossible to replace some applications written for MS SQL or Oracle, etc. But,in all databases that I know of, this also finds that match select * from Table where '9544447408' like concat(npanxx,'%') It does not work in MariaDB, and it should. I am not sure about MySQL, but in any case, it is a bug and we need to fix it and make it efficient. |
| Comments |
| Comment by Elena Stepanova [ 2015-03-31 ] | ||||||||||||||||||||||
|
Works for me:
Please paste the exact queries and output from the client. | ||||||||||||||||||||||
| Comment by Philip orleans [ 2015-03-31 ] | ||||||||||||||||||||||
|
I cannot explain it, look
I can give you access to the box, it is not a production box. this is a mystery If this email is private, I can send you the password, or I can create a Yours On Tue, Mar 31, 2015 at 9:04 AM, Elena Stepanova (JIRA) < | ||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-03-31 ] | ||||||||||||||||||||||
|
Your paste came to JIRA broken. | ||||||||||||||||||||||
| Comment by Philip orleans [ 2015-03-31 ] | ||||||||||||||||||||||
|
I already added your key
| ||||||||||||||||||||||
| Comment by Philip orleans [ 2015-03-31 ] | ||||||||||||||||||||||
|
The Jira system kills any information between plus signs On Tue, Mar 31, 2015 at 9:55 AM, Philip orleans (JIRA) < | ||||||||||||||||||||||
| Comment by Philip orleans [ 2015-03-31 ] | ||||||||||||||||||||||
|
here I go again
select * from ratedeck where '19544447408' like concat(code,'%'); On Tue, Mar 31, 2015 at 10:01 AM, Philip orleans (JIRA) < | ||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-03-31 ] | ||||||||||||||||||||||
|
Here is the problem:
Your value has 3 extra symbols at the end, so naturally it doesn't match the numeric string '19544447408'. | ||||||||||||||||||||||
| Comment by Philip orleans [ 2015-03-31 ] | ||||||||||||||||||||||
|
Thanks, please close the case. On Tue, Mar 31, 2015 at 10:29 AM, Elena Stepanova (JIRA) < |