diff options
Diffstat (limited to 'src/sledjchisl')
-rw-r--r-- | src/sledjchisl/sledjchisl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c index d7b57c3..263dd8e 100644 --- a/src/sledjchisl/sledjchisl.c +++ b/src/sledjchisl/sledjchisl.c | |||
@@ -1130,7 +1130,7 @@ W("Allocated %d %d inBinds for %s", i, req->inCount, req->sql); | |||
1130 | // For some gotchas about all of this binding bit. | 1130 | // For some gotchas about all of this binding bit. |
1131 | req->inBind[i].buffer_type = fld->type; | 1131 | req->inBind[i].buffer_type = fld->type; |
1132 | req->inBind[i].buffer = xzalloc(fld->length + 1); // Note the + 1 is for string types, and a waste for the rest. | 1132 | req->inBind[i].buffer = xzalloc(fld->length + 1); // Note the + 1 is for string types, and a waste for the rest. |
1133 | req->inBind[i].buffer_length = fld->length; | 1133 | req->inBind[i].buffer_length = fld->length + 1; |
1134 | switch(fld->type) | 1134 | switch(fld->type) |
1135 | { | 1135 | { |
1136 | case MYSQL_TYPE_TINY: | 1136 | case MYSQL_TYPE_TINY: |
@@ -1272,7 +1272,7 @@ W("Allocated %d %d outBinds for %s", i, req->outCount, req->sql); | |||
1272 | // For some gotchas about all of this binding bit. | 1272 | // For some gotchas about all of this binding bit. |
1273 | req->outBind[i].buffer_type = fld->type; | 1273 | req->outBind[i].buffer_type = fld->type; |
1274 | req->outBind[i].buffer = xzalloc(fld->length + 1); // Note the + 1 is for string types, and a waste for the rest. | 1274 | req->outBind[i].buffer = xzalloc(fld->length + 1); // Note the + 1 is for string types, and a waste for the rest. |
1275 | req->outBind[i].buffer_length = fld->length; | 1275 | req->outBind[i].buffer_length = fld->length + 1; |
1276 | req->outBind[i].error = xzalloc(sizeof(my_bool)); | 1276 | req->outBind[i].error = xzalloc(sizeof(my_bool)); |
1277 | req->outBind[i].is_null = xzalloc(sizeof(my_bool)); | 1277 | req->outBind[i].is_null = xzalloc(sizeof(my_bool)); |
1278 | switch(fld->type) | 1278 | switch(fld->type) |