in reply to Re^6: regexp question
in thread regexp question
I want to thank Perl Monks for the advice given in this thread. Until now, I was completely unaware of "Prepared Statements" in Java (and "placeholders" in Perl), and now I have a little advice to give others:
For any developer that has text from any source that will be stored in a relational database (and this includes fields such as 'name' and 'address'), use placeholders to enter the data. This removes any concern whatsoever with respect to unicode and characters that may cause havoc (e.g., single quotes, ampersands, and the like).
Because this isn't my first experience with such disruptive characters, I do know trying to cover all the possibilities is maddening and time consuming, and really for no reason in the case of RDBMS.
So thanks again to Ikegami and Anonymous Monk.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: regexp question
by ikegami (Patriarch) on Feb 04, 2011 at 22:03 UTC | |
by Nodonomy (Novice) on Feb 06, 2011 at 21:09 UTC |