Changeset 41ad8ed in network-game for server/DataAccess.cpp


Ignore:
Timestamp:
Dec 3, 2012, 12:27:01 AM (12 years ago)
Author:
dportnoy <dmp1488@…>
Branches:
master
Children:
cbc595d
Parents:
87b3ee2
Message:

The server properly handles registration messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/DataAccess.cpp

    r87b3ee2 r41ad8ed  
    4343   result = select("users", oss.str().c_str());
    4444
     45   cout << "Got result" << endl;
     46
    4547   if (result == NULL) {
     48      cout << "Error occured" << endl;
    4649      cout << mysql_error(connection) << endl;
    4750      return NULL;
     
    5053   if ( ( row = mysql_fetch_row(result)) != NULL )
    5154      p = new Player(string(row[1]), string(row[2]));
    52    else
     55   else {
     56      cout << "Returned no results for some reason" << endl;
    5357      p = NULL;
     58   }
    5459
    5560   mysql_free_result(result);
Note: See TracChangeset for help on using the changeset viewer.