sms db: when storing an SMS, retrieve the ID

seemed like a good idea, but not sure if we need it at all.

Change-Id: I5fa55307a6abb8bbfe56619235d7b79fbbda6caf
changes/18/16218/3
Neels Hofmeyr 3 years ago committed by neels
parent 6dbdf1454d
commit a252bcd089
  1. 3
      src/libmsc/db.c

@ -769,6 +769,9 @@ int db_sms_store(struct gsm_sms *sms)
return -EIO;
dbi_result_free(result);
sms->id = dbi_conn_sequence_last(conn, "id");
LOGP(DLSMS, LOGL_INFO, "Stored SMS id=%llu in DB\n", sms->id);
return 0;
}

Loading…
Cancel
Save