This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jdbc and apostrophes

 
Pauline McNamara
Sheriff
Posts: 4012
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the jdbc assignments is it considered overkill to deal with titles, stars or descriptions with ' in the text? For example, a title like My Best Friend's Dog or a star like Rosie O'Donnell breaks the SQL. Should those ' be escaped first or does one KISS it off?


Thanks,
Pauline
 
Marilyn de Queiroz
Sheriff
Posts: 9059
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is a good thing if your code can handle that situation, but it's not required to pass the assignment.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic