Changeset 8046 for trunk/MagicSoft/Mars


Ignore:
Timestamp:
10/10/06 17:34:30 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/Changelog

    r8045 r8046  
    2222   * datacenter/macros/writesequencefile.C:
    2323     - fixed a possible crash in GetName
     24     - improved output in case of failure
    2425
    2526
  • trunk/MagicSoft/Mars/datacenter/macros/writesequencefile.C

    r8045 r8046  
    102102
    103103    TSQLRow *row = res->Next();
    104     return row ? (*row)[0] : "";
     104    if (!row)
     105    {
     106        cout << "ERROR - No name in " << col << " for key " << n << endl;
     107        return "";
     108    }
     109
     110    return (*row)[0];
    105111}
    106112
Note: See TracChangeset for help on using the changeset viewer.