Ignore:
Timestamp:
08/06/06 19:43:10 (18 years ago)
Author:
tbretz
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/macros/filldotraw.C

    r7777 r7860  
    8888
    8989    TSQLRow *row = res->Next();
    90     if (!row)
     90
     91    TString rc = row ? (*row)[0] : "";
     92
     93    delete res;
     94
     95    if (rc.IsNull())
    9196    {
    9297        cout << "ERROR - No result from query: " << query << endl;
     
    9499    }
    95100
    96     Int_t rc = atoi((*row)[0]);
    97 
    98     delete res;
    99 
    100     return rc;
     101    return rc.Atoi();
    101102}
    102103
Note: See TracChangeset for help on using the changeset viewer.