Changeset 8215 for trunk/MagicSoft/Mars/datacenter/tools
- Timestamp:
- 11/16/06 17:54:57 (18 years ago)
- Location:
- trunk/MagicSoft/Mars/datacenter/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/tools/fillobjects.C
r8138 r8215 29 29 // 30 30 // read file with magnitudes and colour for the objects 31 // File /home/operator/Documents/ good_compstars_R.txt31 // File /home/operator/Documents/optical/good_compstars_R.txt 32 32 // 33 33 /////////////////////////////////////////////////////////////////////////// … … 111 111 query+=Form("'%s'", comment.Data()); 112 112 113 where=Form("fObjectName='%s/%s'", (*arr)[0]->GetName(), (*arr)[1]->GetName());113 query+=Form(", fObjectName='%s/%s'", (*arr)[0]->GetName(), (*arr)[1]->GetName()); 114 114 delete arr; 115 115 116 if (serv. Update("Object", query, where)==kFALSE)116 if (serv.Insert("Object", query)==kFALSE) 117 117 return 2; 118 118 num +=1; -
trunk/MagicSoft/Mars/datacenter/tools/fillobjects2.C
r8139 r8215 29 29 // 30 30 // read file with coordinates for the objects 31 // File /home/operator/Documents/ TeVsources.txt31 // File /home/operator/Documents/optical/TeVsources.txt 32 32 // 33 33 /////////////////////////////////////////////////////////////////////////// … … 119 119 ra, dec); 120 120 121 where=Form("fObjectName='%s'", object.Data());121 query+=Form(", fObjectName='%s'", object.Data()); 122 122 123 if (serv. Update("Object", query, where)==kFALSE)123 if (serv.Insert("Object", query)==kFALSE) 124 124 return 2; 125 125 num +=1;
Note:
See TracChangeset
for help on using the changeset viewer.