aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/sledjchisl
diff options
context:
space:
mode:
authoronefang2020-04-23 01:32:21 +1000
committeronefang2020-04-23 01:32:21 +1000
commit38ddd11c8e4643972ec9f9d995ab019bc6fa7f75 (patch)
treee37ae3d799314cb2ea78615218461f7bbd649058 /src/sledjchisl
parentAttempt to work around what might be a bug in MariaDB. (diff)
downloadopensim-SC_OLD-38ddd11c8e4643972ec9f9d995ab019bc6fa7f75.zip
opensim-SC_OLD-38ddd11c8e4643972ec9f9d995ab019bc6fa7f75.tar.gz
opensim-SC_OLD-38ddd11c8e4643972ec9f9d995ab019bc6fa7f75.tar.bz2
opensim-SC_OLD-38ddd11c8e4643972ec9f9d995ab019bc6fa7f75.tar.xz
Ignore the previous commit, this should fix the actual bug. My fault. lol
Diffstat (limited to 'src/sledjchisl')
-rw-r--r--src/sledjchisl/sledjchisl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index ab5c707..727d70d 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -1126,7 +1126,7 @@ W("Allocated %d %d inBinds for %s", i, req->inCount, req->sql);
1126 // https://blog.cotten.io/a-taste-of-mysql-in-c-87c5de84a31d?gi=ab3dd1425b29 1126 // https://blog.cotten.io/a-taste-of-mysql-in-c-87c5de84a31d?gi=ab3dd1425b29
1127 // For some gotchas about all of this binding bit. 1127 // For some gotchas about all of this binding bit.
1128 req->inBind[i].buffer_type = fld->type; 1128 req->inBind[i].buffer_type = fld->type;
1129 req->inBind[i].buffer = xzalloc(fld->length) + 4; // Note the + 1 is for string types, and a waste for the rest. +4 to work around a MariaDB bug? 1129 req->inBind[i].buffer = xzalloc(fld->length + 1); // Note the + 1 is for string types, and a waste for the rest.
1130 req->inBind[i].buffer_length = fld->length; 1130 req->inBind[i].buffer_length = fld->length;
1131 switch(fld->type) 1131 switch(fld->type)
1132 { 1132 {