Patch level : 12.00 1326
Files correlati : ca0.exe cg0.exe ve0.exe Inivo a CRM Chiusura commesse fino all'anno
This commit is contained in:
parent
3aaeb6c48b
commit
689b71f3b9
@ -15,6 +15,8 @@
|
||||
#include <user.h>
|
||||
#include <rdoc.h>
|
||||
|
||||
#define SQL_NO_TABLE 1146
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// TRecipient
|
||||
///////////////////////////////////////////////////////////
|
||||
@ -753,9 +755,9 @@ HIDDEN void odbc_send(const TString & dsn, int num, TAuto_token_string & elab_fi
|
||||
{
|
||||
TString check_statement = "SELECT * FROM ";
|
||||
|
||||
check_statement << name << ";";
|
||||
check_statement << name << " LIMIT 1;";
|
||||
err = recset.exec(check_statement);
|
||||
err = err == -1146 ? 0 : 1;
|
||||
err = (abs(err) == SQL_NO_TABLE) ? 0 : 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user