Patch level : 12.00 1146

Files correlati     : ca0.exe cg0.exe
This commit is contained in:
Alessandro Bonazzi 2024-07-22 21:31:42 +02:00
parent dbf7c77c0f
commit eb90b152d1

View File

@ -366,7 +366,7 @@ HIDDEN bool create_table(TODBC_recordset & recset, int logicnum, const char * ta
int err = recset.exec(sql);
if (err < 0)
return false;
return error_box(FR("Errore n. %d creazione tabella %d\n%s"), -err, logicnum, (const char *)sql);
for (int k = 0; k < recdef.keys(); k++)
{
TToken_string key(recdef.keydef(k), '+');
@ -462,9 +462,10 @@ HIDDEN bool create_table(TODBC_recordset & recset, int logicnum, const char * ta
int err = recset.exec(sql);
if (err < 0)
return error_box(FR("Errore n. %d creazione indice %d\n%s"), -err, logicnum, (const char *)sql);
return false;
}
return err >= 0;
return err >= 0;
}
HIDDEN const TString & build_statement(TODBC_recordset & recset, const db_op op, int logicnum, const char * table_name, const TString_array & keys, const TString_array & values)
@ -669,7 +670,7 @@ HIDDEN bool popolate_table(TODBC_recordset & recset, int logicnum, const char *
err = recset.exec(update_statement);
}
if (err <= 0)
error_box(FR("Errore n. %d invio file %d"), -err, logicnum);
error_box(FR("Errore n. %d invio file %d\n%s"), -err, logicnum, (const char *)statement);
}
return ok;
}
@ -878,7 +879,7 @@ HIDDEN void odbc_send(const TString & dsn, int num, TAuto_token_string & elab_fi
int err = recset.exec(statement);
if (err < 0)
error_box(FR("Errore n. %d invio file %d"), -err, curr_file_num);
error_box(FR("Errore n. %d invio file %d\n%s"), -err, curr_file_num, (const char *) statement);
else
recset.commit();
}