Changeset 7112 for trunk/MagicSoft/Mars/datacenter/macros/filldotrun.C
- Timestamp:
- 05/30/05 19:12:54 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/datacenter/macros/filldotrun.C
r6970 r7112 107 107 TString query; 108 108 109 query = Form("SELECT f%sKEY FROM MyMagic.%s WHERE f%sName='%s'", col, col, col, name);109 query = Form("SELECT f%sKEY FROM %s WHERE f%sName='%s'", col, col, col, name); 110 110 TSQLResult *res = serv.Query(query); 111 111 if (!res) … … 124 124 return -1; 125 125 126 query = Form("INSERT MyMagic.%s (f%sName) VALUES (\"%s\");", col, col, name);126 query = Form("INSERT %s (f%sName) VALUES (\"%s\");", col, col, name); 127 127 128 128 if (dummy) … … 213 213 //cout << "RunNo: " << runnumber << " "; 214 214 215 if (ExistStr(serv, "fRunNumber", " MyMagic.RunData", strng.Data()))215 if (ExistStr(serv, "fRunNumber", "RunData", strng.Data())) 216 216 { 217 217 // FIXME: Maybe we can implement an switch to update mode? … … 528 528 //assemlbe the query that is needed to insert the values of this run 529 529 TString query; 530 query += "INSERT MyMagic.RunData SET ";530 query += "INSERT RunData SET "; 531 531 532 532 query += Form("fRunNumber=%d, ", runnumber); … … 573 573 574 574 //create entry in table RunProcessStatus for this runnumber 575 TString query2=Form("INSERT MyMagic.RunProcessStatus SET fRunNumber=%d, fTimingCorrection='1970-01-01 00:00:00'",575 TString query2=Form("INSERT RunProcessStatus SET fRunNumber=%d, fTimingCorrection='1970-01-01 00:00:00'", 576 576 runnumber); 577 577 res = serv.Query(query2);
Note:
See TracChangeset
for help on using the changeset viewer.