> SIndex sidx is just a boxed immutable integer. If it were me I'd be reviewing this assumption very carefully. The sequence of events:
1. SIndex.getInt() returns 0 2. SIndex.toString() returns "1" 3. SIndex.getInt() returns 1 Has many possible explanations. You could also try 'final int sid = sidx.getInt();' at the start of setVersion_, and refer to sid throughout instead of sidx to guarantee a consistent value. If the same problem occurs then you know something is going wrong in the jdbc/sqlite layer, otherwise if you start getting rows inserted with cv_s = 0 you know sidx is somehow changing. -Rowan