Forum: Ruby Problem with last_insert_row_id in sqlite3

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Kenneth McDonald (Guest)
on 2008-10-20 22:08
(Received via mailing list)
When I try to use the last_insert_row_id function in sqlite3, I'm
getting a sqlite syntax error. Since all I'm doing is:

db =
id = db.last_insert_rowid

I can't see what could possibly be wrong with something so simple as
this. Clearly, however, I'm also simple when it comes to this :-), so
any help would be appreciated.

Kenneth McDonald (Guest)
on 2008-10-20 22:21
(Received via mailing list)
Problem solved. The error was in incorrect docs on the web. the proper
function is last_insert_row_id.

This topic is locked and can not be replied to.