go ahead... be a heretic | |
PerlMonks |
Re^2: Flexible Update SQLby bichonfrise74 (Vicar) |
on Dec 02, 2010 at 01:08 UTC ( [id://874793]=note: print w/replies, xml ) | Need Help?? |
I had the same approach that you suggested but there is a problem with this... For example, if the phone and country are null, then the SQL that will be constructed will be:
This will be incorrect because of the comma after the 'test_city.' I am not worried about SQL injection attack since this is really something internal and will not be exposed to the outside world.
In Section
Seekers of Perl Wisdom
|
|