We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abd3f4 commit 9d83e2fCopy full SHA for 9d83e2f
SQLite/Database.swift
@@ -289,15 +289,13 @@ public final class Database {
289
290
private var savepointStack = [String]()
291
292
- private var uuid: String { return NSUUID().UUIDString }
293
-
294
/// Starts a new transaction with the given savepoint name.
295
///
296
/// :param: savepointName A unique identifier for the savepoint.
297
298
/// :returns: The SAVEPOINT statement.
299
public func savepoint(_ savepointName: String? = nil) -> Statement {
300
- let name = savepointName ?? uuid
+ let name = savepointName ?? NSUUID().UUIDString
301
savepointStack.append(name)
302
return run("SAVEPOINT \(quote(literal: name))")
303
}
0 commit comments