Fixed incorrect column names
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user