more sql logging

This commit is contained in:
SJ
2015-07-24 15:01:22 +02:00
parent ed0a8bafd5
commit 394ff81ac6
6 changed files with 14 additions and 12 deletions

View File

@@ -188,12 +188,12 @@ int add_new_folder(struct session_data *sdata, struct __data *data, char *folder
}
void update_import_job_stat(struct session_data *sdata, struct __data *data){
void update_import_job_stat(struct session_data *sdata, struct __data *data, struct __config *cfg){
char buf[SMALLBUFSIZE];
snprintf(buf, sizeof(buf)-1, "update import set status=%d, started=%ld, updated=%ld, finished=%ld, total=%d, imported=%d where id=%d", data->import->status, data->import->started, data->import->updated, data->import->finished, data->import->total_messages, data->import->processed_messages, data->import->import_job_id);
p_query(sdata, buf);
p_query(sdata, buf, cfg);
}