Commit c4c8e812 authored by Byron Nikolaidis's avatar Byron Nikolaidis

bug fix for large objects (free)

parent eae456cd
...@@ -124,6 +124,7 @@ static char *func="SQLBindParameter"; ...@@ -124,6 +124,7 @@ static char *func="SQLBindParameter";
} }
if (stmt->parameters[ipar].EXEC_buffer) { if (stmt->parameters[ipar].EXEC_buffer) {
if (stmt->parameters[ipar].SQLType != SQL_LONGVARBINARY)
free(stmt->parameters[ipar].EXEC_buffer); free(stmt->parameters[ipar].EXEC_buffer);
stmt->parameters[ipar].EXEC_buffer = NULL; stmt->parameters[ipar].EXEC_buffer = NULL;
} }
......
...@@ -327,6 +327,7 @@ int i; ...@@ -327,6 +327,7 @@ int i;
} }
if (self->parameters[i].EXEC_buffer) { if (self->parameters[i].EXEC_buffer) {
if (self->parameters[i].SQLType != SQL_LONGVARBINARY)
free(self->parameters[i].EXEC_buffer); free(self->parameters[i].EXEC_buffer);
self->parameters[i].EXEC_buffer = NULL; self->parameters[i].EXEC_buffer = NULL;
} }
...@@ -875,7 +876,7 @@ QueryInfo qi; ...@@ -875,7 +876,7 @@ QueryInfo qi;
*/ */
} }
else { else {
self->errornumber = STMT_BAD_ERROR; self->errornumber = STMT_EXEC_ERROR;
self->errormsg = "Error while executing the query"; self->errormsg = "Error while executing the query";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment