• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Single Quotes Around Value in criteriaFind Strin

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my criteriaFind method when I get to the value in the name value pair I end up having to strip off the single quotes in the search string. So that the values in "Origin='SFO',Destination='DAL'" become SFO and DAL not 'SFO' and 'DAL'. Am I missing something? Are the single quotes there for a reason?
 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by David Reck:
In my criteriaFind method when I get to the value in the name value pair I end up having to strip off the single quotes in the search string. So that the values in "Origin='SFO',Destination='DAL'" become SFO and DAL not 'SFO' and 'DAL'. Am I missing something? Are the single quotes there for a reason?


They are being used as delimiters.
 
Always! Wait. Never. Shut up. Look at this tiny ad.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic