Changeset 11594 for trunk/FACT++/src


Ignore:
Timestamp:
07/26/11 10:22:43 (13 years ago)
Author:
tbretz
Message:
Implemented the correct database query.
File:
1 edited

Legend:

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

    r11586 r11594  
    438438    }*/
    439439
    440     // Retrieve a subset of the sample stock table set up by resetdb
    441     // and display it.
    442     // FIXME: What about a prefix?
    443     const mysqlpp::StoreQueryResult res = conn.query("select `Key`, Value from Configuration").store();
     440    const mysqlpp::StoreQueryResult res =
     441        conn.query("SELECT fProgram, CONCAT(fKey1,fKey2), fValue "
     442                   "FROM ProgramOption WHERE fCounter="
     443                   "(SELECT MAX(fCounter) FROM History)").store();
    444444    /* throws exceptions
    445445    if (!res)
Note: See TracChangeset for help on using the changeset viewer.