• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

param for criteriaFind method

 
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The instructions say
This method searches the database for entries matching the criteria supplied. Criteria take the form of a comma separated list of ]<field name>=<value to match> specifications.
But the Example string is
"Carrier='SpeedyAir',Origin='SFO'"
note the sigoe qoutes enclosing the <value to match> part.
I am a bit confused here...which one to use
could anyone clarify this for me please
cheers
badari
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My instructions a couple of years ago basically stated that the requirements were incomplete and at times contradictory and you'll just have to deal with that -- like in the real world.
You spotted a slight inconsistency in the requirements. It's up to you to make an executive decision about it: you can omit quotes, enforce quotes, or support both types of syntax.
- Peter
 
badari gururaj
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanx Peter
It IS about making decisons and defending them.

cheers
badari
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic