diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index c4126b3..ab5c707 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) + 1; // Note the + 1 is for string types, and a waste for the rest. | 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? |
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 | { |