Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Multiple Qualifiers: msg#00006

cms.opengroupware.xmlrpc.devel

Subject: Re: Multiple Qualifiers

On Thu, 2006-06-08 at 02:46 +0200, Helge Hess wrote:
> On Jun 7, 2006, at 7:53PM, Adam Tauno Williams wrote:
> > Interesting that this doesn't return an error -
> > result = server.person.fetch(
> > {
> > "qualifier": "firstName LIKE '*steve*' AND name LIKE
> > '*berns*'",
> > "sortOrderings" : ["name",],
> > });
> > - but it also returns no data.
>
> Hm, yes, the EOQualifier=>backend converter checks for the "*". I
> think it can't do arbitary LIKE searches either (don't know which
> ones it can deal with).
>
> > Neither does this, which I know should match -
> > result = server.person.fetch(
> > {
> > "qualifier": "firstName LIKE '*tev*' AND name LIKE '*ern*'",
> > "sortOrderings" : ["name",],
> > });
> > Do you think there might be a bug here?
> Maybe. Try 'tev*' instead of '*tev*'. Does this change anything?

"qualifier": "firstName LIKE '*teve' AND name LIKE '*ern*'" --> err
"qualifier": "firstName LIKE 'tev*' AND name LIKE '*ern*'" --> no data
"qualifier": "firstName LIKE 'stev*' AND name LIKE '*ern*'" --> no data
"qualifier": "firstName LIKE 'stev*'", --> no data
... hmmm... ok.....
"qualifier": "firstname LIKE 'stev*' AND name LIKE '*ern*'" --> RETURNS
DATA
"qualifier": "firstname LIKE 'steve' AND name LIKE '*ern*'" --> err
"qualifier": "firstname LIKE '*steve' AND name LIKE '*ern*'" --> err
"qualifier": "firstname LIKE 'steve*' AND name LIKE '*ern*'" --> RETURNS
DATA
"qualifier": "firstname LIKE 'steve*' AND name LIKE 'Bern*'" --> RETURNS
DATA
"qualifier": "firstname LIKE 'steve*' AND name LIKE 'Berns*'" -->
RETURNS DATA

Interesting, so if I stick an * on the end of the value then it
works.

I suppose that is something better then nothing, but it certainly is
odd.


--
OpenGroupware.org XML-RPC
xmlrpc@xxxxxxxxxxxxxxxxx
http://mail.opengroupware.org/mailman/listinfo/xmlrpc



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo