Patch level : 12.0 706

Files correlati     : fp, xvtdb
Commento            :
- Monitor Passive: corretto formato data
- Correzione get per sqlapi: si rompeva il puntatore restituito
This commit is contained in:
Simone Palacino 2019-02-25 16:02:34 +01:00
parent 67664bfb4a
commit d6f2602bff
2 changed files with 6 additions and 2 deletions

View File

@ -184,7 +184,7 @@ void TPassive_mask::aggiungi_riga(TLocalisamfile& clifo, TSheet_field& sf, TShee
row.add(fp_db().sq_get("NUM_DOC"));
// Trasformo formato data da yyyy-mm-gg a italiano
TDate date_t(fp_db().sq_get_date("DATA_DOC"));
row.add(date_t.stringa());
row.add(date_t);
row.add(fp_db().sq_get("TOT_DOC"));
// Dopo aver fatto le ricerche se lo trovo lo segno e lo aggiungo, se no coloro la cella

View File

@ -556,9 +556,13 @@ const char* TXvt_recordset::get_date(const char * field)
const char* TXvt_recordset::get(const char* field)
{
SACommand& pop = *static_cast<SACommand*>(_recset);
try
{
return static_cast<const char *>(_RCS(_recset)->Field(field).asString());
static SAString fld;
fld = _RCS(_recset)->Field(field).asString();
return static_cast<const char *>(fld);
}
catch (SAException &x)
{