Changeset 12838


Ignore:
Timestamp:
02/03/12 14:55:40 (13 years ago)
Author:
tbretz
Message:
Corrected the DB query and output the sources from the DB.
File:
1 edited

Legend:

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

    r12837 r12838  
    11711171
    11721172        const mysqlpp::StoreQueryResult res =
    1173             conn.query("SELECT fSourceName, fRightAscension, fDeclination FROM scheduling.source").store();
     1173            conn.query("SELECT fSourceName, fRightAscension, fDeclination FROM source").store();
    11741174        /* throws exceptions
    11751175        if (!res)
     
    11871187            // FIXME: Check double names
    11881188            fSources[name] = make_pair(ra, dec);
     1189
     1190            ostringstream msg;
     1191            msg << " " << name << ":   Ra=" << ra << "h Dec=" << dec << "deg";
     1192            T::Message(msg);
    11891193        }
    11901194    }
Note: See TracChangeset for help on using the changeset viewer.