summaryrefslogtreecommitdiff
path: root/src/account-server/storage.cpp
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-30 21:09:40 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2013-04-30 21:09:40 +0200
commit769030e6bd22faeb760731172c221ae801c04dcc (patch)
tree48203426c2957d31931cd2d5db81f06c520032e2 /src/account-server/storage.cpp
parent3179b1c83663e51dd594fbaf926d8122b355c747 (diff)
parent23ccc8080a5283adce9f06909fc89b63d0e25452 (diff)
downloadmanaserv-769030e6bd22faeb760731172c221ae801c04dcc.tar.gz
manaserv-769030e6bd22faeb760731172c221ae801c04dcc.tar.bz2
manaserv-769030e6bd22faeb760731172c221ae801c04dcc.tar.xz
manaserv-769030e6bd22faeb760731172c221ae801c04dcc.zip
Merge branch 'master' into lpc2012
Conflicts: src/common/manaserv_protocol.h src/game-server/monstermanager.cpp
Diffstat (limited to 'src/account-server/storage.cpp')
-rw-r--r--src/account-server/storage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/account-server/storage.cpp b/src/account-server/storage.cpp
index 1560547f..dd8cf9ac 100644
--- a/src/account-server/storage.cpp
+++ b/src/account-server/storage.cpp
@@ -56,7 +56,7 @@ static const char *DB_VERSION_PARAMETER = "database_version";
* SQLite3 specificities:
* - any column (but only one for each table) with the exact type of
* 'INTEGER PRIMARY KEY' is taken as auto-increment.
- * - the supported data types are: nullptr, INTEGER, REAL, TEXT and BLOB
+ * - the supported data types are: NULL, INTEGER, REAL, TEXT and BLOB
* (http://www.sqlite.org/datatype3.html)
* - the size of TEXT cannot be set, it is just ignored by the engine.
* - IMPORTANT: foreign key constraints are not yet supported
@@ -1912,7 +1912,7 @@ void Storage::storeLetter(Letter *letter)
{
// The letter was never saved before
sql << "INSERT INTO " << POST_TBL_NAME << " VALUES ( "
- << "nullptr, "
+ << "NULL, "
<< letter->getSender()->getDatabaseID() << ", "
<< letter->getReceiver()->getDatabaseID() << ", "
<< letter->getExpiry() << ", "
@@ -2207,7 +2207,7 @@ void Storage::addTransaction(const Transaction &trans)
{
std::stringstream sql;
sql << "INSERT INTO " << TRANSACTION_TBL_NAME
- << " VALUES (nullptr, " << trans.mCharacterId << ", "
+ << " VALUES (NULL, " << trans.mCharacterId << ", "
<< trans.mAction << ", "
<< "?, "
<< time(0) << ")";