Patch level : 12.0 no-patch
Files correlati : fp Commento : Aggiunto log errori sql
This commit is contained in:
parent
0fd32ec773
commit
eb69b23204
@ -604,6 +604,8 @@ bool TDoc_fp::insert(TPaf_record& p)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ok = p.insert();
|
ok = p.insert();
|
||||||
|
if (!ok)
|
||||||
|
log(2, db().sq_get_string_error());
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
@ -619,6 +621,8 @@ bool TDoc_fp::remove(TPaf_record& p)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
ok = p.remove();
|
ok = p.remove();
|
||||||
|
if (!ok)
|
||||||
|
log(2, db().sq_get_string_error());
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
@ -632,6 +636,8 @@ bool TDoc_fp::save_paf()
|
|||||||
for (auto i = _query.begin(); i != _query.end(); ++i)
|
for (auto i = _query.begin(); i != _query.end(); ++i)
|
||||||
query += *i;
|
query += *i;
|
||||||
ok = db().sq_set_exec(query);
|
ok = db().sq_set_exec(query);
|
||||||
|
if (!ok)
|
||||||
|
log(2, db().sq_get_string_error());
|
||||||
}
|
}
|
||||||
return ok;
|
return ok;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user