Patch level : 10.0 262
Files correlati : ba8.exe Ricompilazione Demo : [ ] Commento : Eliminati $ e % dai nomi delle tabelle nel generatore di query git-svn-id: svn://10.65.10.50/trunk@18559 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
417ec922b4
commit
f06705abc0
@ -63,8 +63,7 @@ void TRelation_node::set_num(int num)
|
|||||||
{
|
{
|
||||||
_logicnum = num;
|
_logicnum = num;
|
||||||
const FileDes& fd = prefix().get_filedes(_logicnum);
|
const FileDes& fd = prefix().get_filedes(_logicnum);
|
||||||
const TFilename name = fd.SysName;
|
_name = fd.SysName; _name.strip("$%"); _name.upper();
|
||||||
_name = name.name(); _name.upper();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
TRelation_node::TRelation_node(const TRelation_node* father, int ln, const char* alias)
|
TRelation_node::TRelation_node(const TRelation_node* father, int ln, const char* alias)
|
||||||
@ -256,22 +255,23 @@ void TTable_mask::mask2node(TRelation_node& son)
|
|||||||
|
|
||||||
TTable_mask::TTable_mask() : TAutomask("ba8200b")
|
TTable_mask::TTable_mask() : TAutomask("ba8200b")
|
||||||
{
|
{
|
||||||
FileDes dir;
|
const TDir dir(LF_DIR);
|
||||||
CGetFile(LF_DIR, &dir, _nolock, NORDIR);
|
const int nfiles = (int)dir.eod();
|
||||||
const int nfiles = (int)dir.EOD;
|
|
||||||
|
|
||||||
TList_sheet& sht = *efield(F_SON).sheet();
|
TList_sheet& sht = *efield(F_SON).sheet();
|
||||||
TToken_string tt(80);
|
TToken_string tt(80);
|
||||||
TFilename n;
|
|
||||||
for (int logic = LF_USER; logic < nfiles; logic++)
|
for (int logic = LF_USER; logic < nfiles; logic++)
|
||||||
{
|
{
|
||||||
const FileDes& fd = prefix().get_filedes(logic);
|
const FileDes& fd = prefix().get_filedes(logic);
|
||||||
n = fd.SysName; n = n.name(); n.upper();
|
tt = fd.SysName;
|
||||||
tt = n;
|
if (tt.full())
|
||||||
|
{
|
||||||
|
tt.strip("$%"); tt.upper();
|
||||||
tt.add(logic);
|
tt.add(logic);
|
||||||
tt.add(fd.Des);
|
tt.add(fd.Des);
|
||||||
sht.rows_array().add(tt);
|
sht.rows_array().add(tt);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
sht.rows_array().sort();
|
sht.rows_array().sort();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user