![]() |
|
XP is just a number | |
PerlMonks |
Re^9: Best practices for closing database connections?by haj (Priest) |
on Mar 17, 2022 at 15:59 UTC ( #11142192=note: print w/replies, xml ) | Need Help?? |
This makes me shudder: $statement = sanitize($statement);Sanitizing a statement as a whole either means that you actually need to parse the statement, or, more likely, you are making some assumptions about your statements, like "column names don't contain single quotes". This may work for your application as of now, but I'd not recommend it.
In Section
Seekers of Perl Wisdom
|
|