Fixed incorrect column names

This commit is contained in:
2020-10-15 11:28:59 +01:00
parent 572cb38e0f
commit b5c05732de
4 changed files with 9 additions and 9 deletions

View File

@@ -199,7 +199,7 @@ int modbObjectList(stored_conn *sconn, modb_ref *modb, int with_deleted,
int res;
if (with_deleted == 0) {
wb = where(0, "deleted_on", IS_NULL, TYPE_RAW, 0, 0);
wb = where(0, "deleted", IS_NULL, TYPE_RAW, 0, 0);
}
res = doObjectsQuery(sconn, modb, wb, objects, n_objects);
if (wb != 0) {
@@ -279,7 +279,7 @@ int modbObjectDelete(stored_conn *sconn, modb_ref *modb, unsigned int id)
int64_t qry_ret;
modbTableName(&table, &table_len, modb, OBJECTS_TABLE, STR_LEN(OBJECTS_TABLE));
qry_ret = softDeleteByIdQuery(sconn, table, table_len, "id", id);
qry_ret = softDeleteByIdQuery(sconn, table, table_len, "mdo_id", id);
modbFreeTableName(&table);
return (int)qry_ret;
@@ -291,7 +291,7 @@ int modbObjectDestroy(stored_conn *sconn, modb_ref *modb, unsigned int id)
int64_t qry_ret;
modbTableName(&table, &table_len, modb, OBJECTS_TABLE, STR_LEN(OBJECTS_TABLE));
qry_ret = deleteByIdQuery(sconn, table, table_len, "id", id);
qry_ret = deleteByIdQuery(sconn, table, table_len, "mdo_id", id);
modbFreeTableName(&table);
return (int)qry_ret;