Thanks for your reply. So does substituting placeholders in the driver still involve pre-compiling the SQL statement to prevent SQL injection? Acutally I am more concerned about security aspects rather than performance overhead. 在2023年9月19日星期二 UTC+8 07:45:35<Inada Naoki> 写道:
> Hi. I'm maintainer of go-mysql-driver. > > There is an option to substitute placeholders in the driver, instead of in > the MySQL server. > It can be used to: > > * Reduce roundtrip to execute a query > * Avoid limitations of where placeholders can be used > > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/08a09432-87a9-4c97-9a77-65dffaf4b466n%40googlegroups.com.