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:
parent
6dbdf1454d
commit
a252bcd089
|
@ -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…
Reference in New Issue