|
|||||||
New to SitePoint Forums? Register here for free!
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
SitePoint Enthusiast
![]() Join Date: May 2005
Location: UK
Posts: 65
|
Using LIKE to match patterns - strange occurence when escaping
Code:
SELECT "A\\" LIKE "A\\" Can anyone shed light on this? |
|
|
|
|
|
#2 |
|
SQL Consultant
![]() ![]() ![]() Join Date: Jul 2002
Location: Toronto, Canada
Posts: 31,026
|
on 4.1.12a-nt, i get a return of 1, not 0
|
|
|
|
|
|
#3 |
|
SitePoint Enthusiast
![]() Join Date: May 2005
Location: UK
Posts: 65
|
Thats real strange. I ran it in the command line client and got 1. I ran it in Query Browser and got 0.
Could it be a bug in Query Browser's parsing maybe? |
|
|
|
|
|
#4 |
|
reads the Community Crier
![]() ![]() ![]() ![]() Join Date: Feb 2004
Location: Tampa, FL (US)
Posts: 9,896
|
maybe. query browser issues a "SET NAMES utf8" command right before it sends the query, and that causes mysql to return 0 when i'm in the CLI, too. i'll post it on the mysql website as a bug in mysql and see waht they say.
|
|
|
|
|
|
#5 |
|
SitePoint Evangelist
![]() ![]() ![]() ![]() Join Date: Apr 2005
Location: Moscow, Russia
Posts: 559
|
On MySQL 5.0.2-alpha-nt the query also returns 1 for "SET NAMES latin1" and 0 for "SET NAMES utf8"
|
|
|
|
|
|
#6 |
|
reads the Community Crier
![]() ![]() ![]() ![]() Join Date: Feb 2004
Location: Tampa, FL (US)
Posts: 9,896
|
it is now officially a bug: http://bugs.mysql.com/bug.php?id=11754
|
|
|
|
|
|
#7 |
|
SitePoint Member
Join Date: Sep 2007
Posts: 13
|
Mine is returning 1 too. cheers.
|
|
|
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT -7. The time now is 22:45.













Linear Mode
