Guest User

Untitled

a guest
Sep 18th, 2011
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. {
  2.     mysqlpp::Row row;
  3.     {
  4.         mysqlpp::UseQueryResult res;
  5.         {
  6.             mysqlpp::Query query = conn.query();
  7.             query << "SELECT USER();";
  8.             res = query.use();
  9.             row = res.fetch_row();
  10.         }              
  11.                        
  12.         if( row.empty() )
  13.         {
  14.             CryLogAlways( "[SQL] Query Result \'row\'is invalid, this game will not show up on the Online List!" );
  15.             return;
  16.         }
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment