mirror of
https://github.com/minetest/minetestmapper.git
synced 2024-09-26 06:20:26 +02:00
Merge 8384d46e51
into 0bf0d8e035
This commit is contained in:
commit
d024bec73c
|
@ -1,5 +1,6 @@
|
||||||
#include <stdexcept>
|
#include <stdexcept>
|
||||||
#include <unistd.h> // for usleep
|
#include <unistd.h> // for usleep
|
||||||
|
#include <iostream>
|
||||||
#include "db-sqlite3.h"
|
#include "db-sqlite3.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
|
@ -31,11 +32,12 @@ DBSQLite3::DBSQLite3(const std::string &mapdir)
|
||||||
|
|
||||||
DBSQLite3::~DBSQLite3()
|
DBSQLite3::~DBSQLite3()
|
||||||
{
|
{
|
||||||
int result;
|
sqlite3_finalize(stmt_get_blocks_z);
|
||||||
SQLOK(finalize(stmt_get_blocks_z));
|
sqlite3_finalize(stmt_get_block_pos);
|
||||||
SQLOK(finalize(stmt_get_block_pos));
|
|
||||||
|
|
||||||
SQLOK(close(db));
|
if (sqlite3_close(db) != SQLITE_OK) {
|
||||||
|
std::cerr << "Error closing SQlite DB\n";
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
std::vector<BlockPos> DBSQLite3::getBlockPos()
|
std::vector<BlockPos> DBSQLite3::getBlockPos()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user