1 Reply Latest reply on Feb 8, 2002 5:48 PM by ldandersen

    How do I code a finder for this soundex query?

    ldandersen

      OK,
      I am trying to make a custom finder to do a soundex query. The SQL statement I'm trying to do is like this:

      SOUNDEX(mycolumn) = SOUNDEX('{0}')

      However for the life of me I can't figure out how to deal with that string literal and it's attendant single quotes. I've tried stuff like this:

      "'"{0}"'"
      ''{0}''

      and even pre-coding the quotes as part of {0}. Nothing seems to work. Yet, if I hard code it like this:

      SOUNDEX(mycolumn) = SOUNDEX('jon')

      It works flawlessly. I've searched everywhere for guidance on how to deal with this kind of situation and can't seem to find it anywhere. Can anyone here offer any advice?

      I am using JBoss 2.4.3.

      Thanks so much!
      Buzz Andersen

        • 1. Re: How do I code a finder for this soundex query?
          ldandersen

          OK, well, *I* officially feel like an idiot :-)! I kept experimenting and found that I was making it *waaay* too complicated. It turns out the following worked just fine:

          SOUNDEX(maxofborrower) = SOUNDEX({0})

          That's right, no fancy quote stuff. Funny how that was the last thing I tried...

          Oh well, thanks anyway--I'm going home now :-).

          Buzz