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


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/DataAccess.cpp

    ra9e808e raf116c0  
    144144   ostringstream oss;
    145145
    146    if (connection == NULL) {
    147        cout << "Error: non database connection exists" << endl;
    148        return -1;
    149    }
    150 
    151146   oss << "INSERT into " << table << " (" << columns << ") VALUES (" << values << ")";
    152147   cout << "query: " << oss.str() << endl;
     
    166161   int query_state;
    167162   ostringstream oss;
    168 
    169    if (connection == NULL) {
    170        cout << "Error: non database connection exists" << endl;
    171        return -1;
    172    }
    173163
    174164   oss << "UPDATE " << table << " SET " << values << " WHERE " << where;
     
    190180   ostringstream oss;
    191181
    192    if (connection == NULL) {
    193        cout << "Error: non database connection exists" << endl;
    194        return NULL;
    195    }
    196 
    197182   oss << "SELECT * FROM " << table;
    198183   if (!filter.empty())
Note: See TracChangeset for help on using the changeset viewer.