Changes in / [af116c0:a9e808e] in network-game


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/DataAccess.cpp

    raf116c0 ra9e808e  
    144144   ostringstream oss;
    145145
     146   if (connection == NULL) {
     147       cout << "Error: non database connection exists" << endl;
     148       return -1;
     149   }
     150
    146151   oss << "INSERT into " << table << " (" << columns << ") VALUES (" << values << ")";
    147152   cout << "query: " << oss.str() << endl;
     
    162167   ostringstream oss;
    163168
     169   if (connection == NULL) {
     170       cout << "Error: non database connection exists" << endl;
     171       return -1;
     172   }
     173
    164174   oss << "UPDATE " << table << " SET " << values << " WHERE " << where;
    165175   cout << "query: " << oss.str() << endl;
     
    179189   int query_state;
    180190   ostringstream oss;
     191
     192   if (connection == NULL) {
     193       cout << "Error: non database connection exists" << endl;
     194       return NULL;
     195   }
    181196
    182197   oss << "SELECT * FROM " << table;
Note: See TracChangeset for help on using the changeset viewer.