Skip to content

Commit 3c26ae9

Browse files
authored
Fix SQL syntax error (#3456)
`DELETE` statement doesn't need `LIMIT` and it's break CentOS7 builds. rdar://77275629
1 parent fae7303 commit 3c26ae9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Basics/SQLiteBackedCache.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public final class SQLiteBackedCache<Value: Codable>: Closable {
119119
}
120120

121121
public func remove(key: Key) throws {
122-
let query = "DELETE FROM \(self.tableName) WHERE key = ? LIMIT 1;"
122+
let query = "DELETE FROM \(self.tableName) WHERE key = ?;"
123123
try self.executeStatement(query) { statement in
124124
try statement.bind([.string(key)])
125125
try statement.step()

0 commit comments

Comments
 (0)