Changeset 18538 for trunk/FACT++


Ignore:
Timestamp:
08/09/16 20:49:31 (8 years ago)
Author:
tbretz
Message:
Print the number of columns skipped due to NULL entry.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/rootifysql.cc

    r18504 r18538  
    258258
    259259    // ---------------------- Fill TTree with DB data --------------------------
     260    size_t skip = 0;
    260261    for (auto row=res.begin(); row<res.end(); row++)
    261262    {
     
    273274
    274275            if (!ignore && col->is_null())
    275                 break;
     276            {
     277                skip++;
     278                break;
     279            }
    276280
    277281            switch (typ[idx])
     
    311315
    312316    if (verbose>0)
     317    {
     318        if (skip>0)
     319            cout << skip << " rows skipped due to NULL field." << endl;
     320
    313321        cout << ttree->GetEntries() << " rows filled into tree." << endl;
     322    }
    314323
    315324    ttree->Write();
Note: See TracChangeset for help on using the changeset viewer.