>int A::Foo()
>{
>       return sqlite3_last_insert_rowid( m_handle );
>}
>
>I'm trying to compile my program for the 32-bit using gcc-4.2.

The rowid *return type from sqlite3_last_insert* is a long long, not an int.


long long A::foo()
{
   return sqlite3_last_insert_rowid(m_handle);
}

will return the long long as a long long and not truncate it to an int




_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to