summaryrefslogtreecommitdiff
path: root/src/database-sqlite3.cpp
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-07-06 21:24:31 +0200
committersapier <Sapier at GMX dot net>2014-07-06 21:27:54 +0200
commitb459f53ac366930f93928352833ea266fbfcd92e (patch)
tree432c3cf9e039949ef2b162cf65d4e8d3863d806c /src/database-sqlite3.cpp
parentd020e0771d938e7ae12e082b5bd4f686e77f0bdb (diff)
downloadminetest-b459f53ac366930f93928352833ea266fbfcd92e.tar.gz
minetest-b459f53ac366930f93928352833ea266fbfcd92e.tar.bz2
minetest-b459f53ac366930f93928352833ea266fbfcd92e.zip
Switch android to leveldb as sqlite3 is broken and fails to save any mapblock there
Diffstat (limited to 'src/database-sqlite3.cpp')
-rw-r--r--src/database-sqlite3.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/database-sqlite3.cpp b/src/database-sqlite3.cpp
index 7f7850719..3ec13a1a2 100644
--- a/src/database-sqlite3.cpp
+++ b/src/database-sqlite3.cpp
@@ -187,12 +187,12 @@ void Database_SQLite3::saveBlock(MapBlock *block)
const char *bytes = tmp.c_str();
if(sqlite3_bind_int64(m_database_write, 1, getBlockAsInteger(p3d)) != SQLITE_OK)
- infostream<<"WARNING: Block position failed to bind: "<<sqlite3_errmsg(m_database)<<std::endl;
+ errorstream<<"WARNING: Block position failed to bind: "<<sqlite3_errmsg(m_database)<<std::endl;
if(sqlite3_bind_blob(m_database_write, 2, (void *)bytes, o.tellp(), NULL) != SQLITE_OK) // TODO this mught not be the right length
- infostream<<"WARNING: Block data failed to bind: "<<sqlite3_errmsg(m_database)<<std::endl;
+ errorstream<<"WARNING: Block data failed to bind: "<<sqlite3_errmsg(m_database)<<std::endl;
int written = sqlite3_step(m_database_write);
if(written != SQLITE_DONE)
- infostream<<"WARNING: Block failed to save ("<<p3d.X<<", "<<p3d.Y<<", "<<p3d.Z<<") "
+ errorstream<<"WARNING: Block failed to save ("<<p3d.X<<", "<<p3d.Y<<", "<<p3d.Z<<") "
<<sqlite3_errmsg(m_database)<<std::endl;
// Make ready for later reuse
sqlite3_reset(m_database_write);