Ignore:
Timestamp:
11/16/06 17:54:57 (18 years ago)
Author:
Daniela Dorner
Message:
*** empty log message ***
Location:
trunk/MagicSoft/Mars/datacenter/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MagicSoft/Mars/datacenter/tools/fillobjects.C

    r8138 r8215  
    2929//
    3030// read file with magnitudes and colour for the objects
    31 // File /home/operator/Documents/good_compstars_R.txt
     31// File /home/operator/Documents/optical/good_compstars_R.txt
    3232//
    3333///////////////////////////////////////////////////////////////////////////
     
    111111            query+=Form("'%s'", comment.Data());
    112112
    113         where=Form("fObjectName='%s/%s'", (*arr)[0]->GetName(), (*arr)[1]->GetName());
     113        query+=Form(", fObjectName='%s/%s'", (*arr)[0]->GetName(), (*arr)[1]->GetName());
    114114        delete arr;
    115115
    116         if (serv.Update("Object", query, where)==kFALSE)
     116        if (serv.Insert("Object", query)==kFALSE)
    117117            return 2;
    118118        num +=1;
  • trunk/MagicSoft/Mars/datacenter/tools/fillobjects2.C

    r8139 r8215  
    2929//
    3030// read file with coordinates for the objects
    31 // File /home/operator/Documents/TeVsources.txt
     31// File /home/operator/Documents/optical/TeVsources.txt
    3232//
    3333///////////////////////////////////////////////////////////////////////////
     
    119119                   ra, dec);
    120120
    121         where=Form("fObjectName='%s'", object.Data());
     121        query+=Form(", fObjectName='%s'", object.Data());
    122122
    123         if (serv.Update("Object", query, where)==kFALSE)
     123        if (serv.Insert("Object", query)==kFALSE)
    124124            return 2;
    125125        num +=1;
Note: See TracChangeset for help on using the changeset viewer.