9 Replies Latest reply on May 29, 2012 10:53 AM by jp_casillas

    getResult() is returning NULL on INSERT statement

    iamcootis Level 1

      I am trying to return the lastInsertRowId after I have inserted a product into my database.


      The table is defined as such: CREATE TABLE PRODUCTS (id INTEGER PRIMARY KEY AUTOINCREMENT , etc. etc.);


      The property is being inserted into the database, on stmt.execute(); But when I call stmt.getResult().lastInsertRowId, the getResult() is Null.


      Does anyone have any idea what I'm doing wrong or anything else I need to check?