Implemented get_last_id() for SQLite3

This commit is contained in:
Pierre Pronchery 2012-11-30 15:53:42 +01:00
parent 9f5531ac71
commit e560d964dc

View File

@ -117,8 +117,8 @@ static void _sqlite3_destroy(SQLite3 * sqlite3)
/* _sqlite3_get_last_id */
static int _sqlite3_get_last_id(SQLite3 * sqlite3)
{
/* FIXME really implement */
return -1;
/* XXX returns an int64_t */
return sqlite3_last_insert_rowid(sqlite3->handle);
}