projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec0c4d3
)
PostgreSQL: fix delete block
author
Loïc Blot
<lblot@infopro-digital.com>
Mon, 27 Mar 2017 13:03:13 +0000
(15:03 +0200)
committer
Loïc Blot
<lblot@infopro-digital.com>
Mon, 27 Mar 2017 13:03:13 +0000
(15:03 +0200)
Typo fix: we are doing select on delete block.
This fix issue #5426
src/database-postgresql.cpp
patch
|
blob
|
history
diff --git
a/src/database-postgresql.cpp
b/src/database-postgresql.cpp
index 03a69566bfb5c9c3e789937d5eb92567db2367eb..83678fd52d8aca839750861adf783c40c85a794e 100644
(file)
--- a/
src/database-postgresql.cpp
+++ b/
src/database-postgresql.cpp
@@
-281,7
+281,7
@@
bool Database_PostgreSQL::deleteBlock(const v3s16 &pos)
const int argLen[] = { sizeof(x), sizeof(y), sizeof(z) };
const int argFmt[] = { 1, 1, 1 };
- execPrepared("
read
_block", ARRLEN(args), args, argLen, argFmt);
+ execPrepared("
delete
_block", ARRLEN(args), args, argLen, argFmt);
return true;
}