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.
2 parents c36ef12 + b0322df commit 9b9f2e6Copy full SHA for 9b9f2e6
SQLite/Core/Connection.swift
@@ -107,7 +107,7 @@ public final class Connection {
107
/// The last rowid inserted into the database via this connection.
108
public var lastInsertRowid: Int64? {
109
let rowid = sqlite3_last_insert_rowid(handle)
110
- return rowid > 0 ? rowid : nil
+ return rowid != 0 ? rowid : nil
111
}
112
113
/// The last number of changes (inserts, updates, or deletes) made to the
0 commit comments