Browse Source

fixed id for record

Alexander Brakowski 10 years ago
parent
commit
1f3b03e5d5

+ 1 - 1
src/de/tudarmstadt/informatik/hostage/persistence/HostageDBOpenHelper.java

@@ -198,7 +198,7 @@ public class HostageDBOpenHelper extends SQLiteOpenHelper {
 
     private void insertMessageRecordWithOnConflict(MessageRecord record, SQLiteDatabase db){
         ContentValues recordValues = new ContentValues();
-        //recordValues.put(PacketEntry.COLUMN_NAME_ID, record.getId()); // Log Message Number
+        recordValues.put(PacketEntry.COLUMN_NAME_ID, record.getId()); // Log Message Number
         recordValues.put(PacketEntry.COLUMN_NAME_ATTACK_ID, record.getAttack_id()); // Log Attack ID
         recordValues.put(PacketEntry.COLUMN_NAME_TYPE, record.getType().name()); // Log Type
         recordValues.put(PacketEntry.COLUMN_NAME_PACKET_TIMESTAMP, record.getTimestamp()); // Log Timestamp