Skip to content

Commit 72e78ee

Browse files
authored
README: Update multistatement (#1431)
1 parent a841e81 commit 72e78ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -295,9 +295,9 @@ Valid Values: true, false
295295
Default: false
296296
```
297297

298-
Allow multiple statements in one query. While this allows batch queries, it also greatly increases the risk of SQL injections. Only the result of the first query is returned, all other results are silently discarded.
298+
Allow multiple statements in one query. This can be used to bach multiple queries. Use [Rows.NextResultSet()](https://pkg.go.dev/database/sql#Rows.NextResultSet) to get result of the second and subsequent queries.
299299

300-
When `multiStatements` is used, `?` parameters must only be used in the first statement.
300+
When `multiStatements` is used, `?` parameters must only be used in the first statement. [interpolateParams](#interpolateparams) can be used to avoid this limitation unless prepared statement is used explicitly.
301301

302302
##### `parseTime`
303303

0 commit comments

Comments
 (0)