How do i sanitize a string for database query?

Adam D. Ruppe via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Jul 21 10:41:19 PDT 2015


On Tuesday, 21 July 2015 at 17:23:30 UTC, ddos wrote:
> How do i sanitize a string for database query?

You generally shouldn't even try, instead use the database 
functions that bind parameters to the procedure.

> Is there some builtin function?


It is different for each database target.


More information about the Digitalmars-d-learn mailing list