Commit c74af55b by Dane Springmeyer

add test for retrieving rowid of last row

parent 2ac7abcb
......@@ -26,4 +26,13 @@ describe('named columns', function() {
done();
});
});
it('should be able to retrieve rowid of last inserted value', function(done) {
db.get("SELECT last_insert_rowid() as last_id FROM foo", function(err, row) {
if (err) throw err;
assert.equal(row.last_id, 1);
done();
});
});
});
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment