Patch level : 12.0 1086

Files correlati     : bs0.exe bs0500a.msk ba3.exe cg0.exe ve0.exe ve2.exe

Commento        :

Importazione Bee Store
This commit is contained in:
Alessandro Bonazzi 2021-10-04 22:30:33 +02:00
parent c18d9ac43d
commit 8e1281acf5
2 changed files with 15 additions and 0 deletions

View File

@ -707,6 +707,20 @@ void TODBC_recordset::remove_rec(const TISAM_recordset& dbfset)
upd.exec(query);
}
const char * TODBC_recordset::table_name()
{
TString & s = get_tmp_string(255);
int pos = _sql.find("FROM");
if (pos >= 0)
{
s = _sql.ltrim(pos + 5);
pos = s.find(" ");
if (pos > 0)
s = s.left(pos);
}
return s;
}
void TODBC_recordset::set(const char* sql)
{
if (not_frozen() || !_loaded || _sql != sql)

View File

@ -69,6 +69,7 @@ public:
void remove_rec(const TISAM_recordset& dbfset);
const TString& dsn() const { return _dsn; }
const char * table_name();
TODBC_recordset(const char* sql, const bool freezed = false);
virtual ~TODBC_recordset();