Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SQLite/Core/Connection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public final class Connection {
/// The last rowid inserted into the database via this connection.
public var lastInsertRowid: Int64? {
let rowid = sqlite3_last_insert_rowid(handle)
return rowid > 0 ? rowid : nil
return rowid != 0 ? rowid : nil
}

/// The last number of changes (inserts, updates, or deletes) made to the
Expand Down