Sign In/My Account | View Cart  
advertisement

Article:
 Hacking Oscar!
Subject: @year
Date: 2005-03-29 04:11:20
From: David Carlisle

Just a note that your queries all need [@year ...
not [year..


or year needs to be a child element not an attribute.


Also do you really need the ftcontains test here?
even if current Xquery drafts contained the full text search functions, I'd have thought that you wanted string equality (=), perhaps up to some collation, eg case insensitive equality.


David


Previous Message Previous Message   Next Message No Next Message


Titles Only Titles Only Newest First
  • @year
    2005-03-29 07:12:39 Howard Katz [Reply]

    Just goes to show the value (for the 1000th time) of actually testing the code you write about, even when it's something as obvious as '@' signs on attributes. You're also correct on ftcontains: it's overkill, and a simple '=' would have done equally (pun intended) as well. Hmmm, a short discussion in the followup article on string comparisons and collations might be interesting ...


    Howard


Sponsored By: