[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: back-sql sqlquery



> Hello,
>
> Why do back-sql querys like
> (2=2 OR (ldap_entries.id=ldap_entry_objclasses.entry_id AND
> ldap_entry_objclasses.oc_name='" /* '))
>
> For what is the 2=2 ? This makes my query very slow.

The "2=2" is a placeholder for "TRUE".  Different numbers indicate
different places in the code where the replacement took place.  I'd be
much more worried about the "ldap_entry_objclasses.oc_name='" /* '" which
clearly indicates an error in the code, or some abnormal behavior at
least.  Unfortunately you don't provide enough info to track where it
might have happened.

p.

>
> Thanks
> Thomas
>
> --
> LiHAS - LinuxHaus Stuttgart              Fon:  +49 (7 11) 78 28 50 93
> Inh.: Adrian Reyer                       Fax:  +49 (7 11) 78 28 50 91
>                                          Mail: lihas@lihas.de
> Linux, Netzwerke, Consulting & Support	http://lihas.de/
> 				Vcard	http://lihas.de/tho.vcf
>


-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it


    SysNet - via Dossi,8 27100 Pavia Tel: +390382573859 Fax: +390382476497