XML escaping problem (>= doesn"t become >=)
am 06.01.2004 12:57:40 von thiagoI found a little glitch on mysql's XML output. It turns out that the
exit is not properly escaped for some ">=3D" clauses. Here is an example:
bash$ mysql -u user -ppass MyDB -X -e \
"select C.name Op, count(E.emailProfileId) TotalAccounts \
from MDEmailReader.EmailProfiles E, MDRegister.Carriers C, \
MDRegister.CarrierAreaCodes CAC \
where C.carrierId =3D CAC.carrierId and \
LEFT(E.userCellphone, 2) =3D CAC.prefix and \
MID(E.userCellphone, 3, 2) <=3D CAC.endNumber and \
MID(E.userCellphone, 3, 2) >=3D CAC.startNumber \
group by C.carrierId;"=20
The problem is in the "statement" value. The clause
"MID(E.userCellphone, 3, 2) >=3D CAC.startNumber" was not correctly
escaped to
"MID(E.userCellphone, 3, 2) >=3D CAC.startNumber".
Here is the actual output.
MDRegister.CarrierAreaCodes CAC =20
where C.carrierId =3D CAC.carrierId and =20
LEFT(E.userCellphone, 2) =3D CAC.prefix and =20
MID(E.userCellphone, 3, 2) <=3D CAC.endNumber and =20
MID(E.userCellphone, 3, 2) >=3D CAC.startNumber =20
group by C.carrierId">
I haven't found this on previous posts to the bugs list. I'm sorry if
this is a known issue. Please let me know if you need further
information (such as tables definitions etc).
Regards,
--=20
Thiago Figueir=F3 Ger=EAncia de Operações
thiago@ntime.com.br Cel.: (21) 9329-0308
--
MySQL Bugs Mailing List
For list archives: http://lists.mysql.com/bugs
To unsubscribe: http://lists.mysql.com/bugs?unsub=3Dgcdmb-bugs@m.gmane.org