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
This commit is contained in:
Neels Hofmeyr 2019-11-18 07:09:18 +01:00 committed by neels
parent 6dbdf1454d
commit a252bcd089
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}