in reply to Re^4: DBI parameterized database query with comma seperated list
in thread DBI parameterized database query with comma seperated list
There are safe and robust ways to do dynamic SQL;
That's what everyone thinks. And, even it it were true, it only stays true until another feature is added (to the code or the RDBMS.) If you're trying to prove what can and cannot be done, you better be sure you have checked every aspect. However, with properly parameterized SQL, the placeholders are strictly typed as data and cannot be used for anything other than data. Hence, the statement is guaranteed to be safe.
This approach enhances security immensely. As a general rule, each layer should handle its own security.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^6: DBI parameterized database query with comma seperated list
by kennethk (Abbot) on Dec 21, 2015 at 23:23 UTC | |
by Pope-O-Matik (Pilgrim) on Dec 22, 2015 at 04:44 UTC |