diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-29 22:17:25 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-29 22:17:25 +0200 |
commit | a8defa22243de756842a78fe36a4b76091915987 (patch) | |
tree | e815c8e15e4067be690eaf2d8c3e02d7a4288514 /src | |
parent | ae624b3458caaee9cee762af16bce5ff6b0302a7 (diff) | |
download | manaserv-a8defa22243de756842a78fe36a4b76091915987.tar.gz manaserv-a8defa22243de756842a78fe36a4b76091915987.tar.bz2 manaserv-a8defa22243de756842a78fe36a4b76091915987.tar.xz manaserv-a8defa22243de756842a78fe36a4b76091915987.zip |
Fixed two SQL queries that broke since NULL -> nullptr replacement
Diffstat (limited to 'src')
-rw-r--r-- | src/account-server/storage.cpp | 6 |
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) << ")"; |