Implemented get_last_id() for SQLite3
This commit is contained in:
parent
9f5531ac71
commit
e560d964dc
|
@ -117,8 +117,8 @@ static void _sqlite3_destroy(SQLite3 * sqlite3)
|
||||||
/* _sqlite3_get_last_id */
|
/* _sqlite3_get_last_id */
|
||||||
static int _sqlite3_get_last_id(SQLite3 * sqlite3)
|
static int _sqlite3_get_last_id(SQLite3 * sqlite3)
|
||||||
{
|
{
|
||||||
/* FIXME really implement */
|
/* XXX returns an int64_t */
|
||||||
return -1;
|
return sqlite3_last_insert_rowid(sqlite3->handle);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user