[skip travis] don’t talk about "misuse" when it’s all about an SQLite misfeature

This commit is contained in:
Gwendal Roué committed 2020-09-11 14:34:55 +02:00
1 parent f9f16df065
commit 1829706faa
1 file changed
+3 -3
+3 -3
View File
@@ -7852,15 +7852,15 @@ When this is the case, there are two possible explanations:
```swift
let name: String = ...
// MISUSE (double quote)
// NOT STANDARD (double quote)
try db.execute(sql: """
UPDATE player SET name = "\(name)"
""")
// BETTER, BUT STILL NOT RECOMMENDED (single quote)
// STANDARD, BUT STILL NOT RECOMMENDED (single quote)
try db.execute(sql: "UPDATE player SET name = '\(name)'")
// RECOMMENDED (statement arguments)
// STANDARD, AND RECOMMENDED (statement arguments)
try db.execute(sql: "UPDATE player SET name = ?", arguments: [name])
```