Changes in / [a9e808e:af116c0] in network-game
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
server/DataAccess.cpp
ra9e808e raf116c0 144 144 ostringstream oss; 145 145 146 if (connection == NULL) {147 cout << "Error: non database connection exists" << endl;148 return -1;149 }150 151 146 oss << "INSERT into " << table << " (" << columns << ") VALUES (" << values << ")"; 152 147 cout << "query: " << oss.str() << endl; … … 166 161 int query_state; 167 162 ostringstream oss; 168 169 if (connection == NULL) {170 cout << "Error: non database connection exists" << endl;171 return -1;172 }173 163 174 164 oss << "UPDATE " << table << " SET " << values << " WHERE " << where; … … 190 180 ostringstream oss; 191 181 192 if (connection == NULL) {193 cout << "Error: non database connection exists" << endl;194 return NULL;195 }196 197 182 oss << "SELECT * FROM " << table; 198 183 if (!filter.empty())
Note:
See TracChangeset
for help on using the changeset viewer.