Skip to content

Commit 2045747

Browse files
committed
Fixed bug in DatabaseLastInsertRowid where no number was returned
1 parent b8f1bf7 commit 2045747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripting/methods/methods_database.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ BSTR CMUSHclientDoc::DatabaseLastInsertRowid(LPCTSTR Name)
492492
if (it != m_Databases.end () && // database exists
493493
it->second->db != NULL)
494494
{
495-
strResult.Format("%I64", sqlite3_last_insert_rowid(it->second->db));
495+
strResult.Format("%I64d", sqlite3_last_insert_rowid(it->second->db));
496496
}
497497

498498
return strResult.AllocSysString();

0 commit comments

Comments
 (0)