Commit c4c8e812 authored by Byron Nikolaidis's avatar Byron Nikolaidis

bug fix for large objects (free)

parent eae456cd
......@@ -124,7 +124,8 @@ static char *func="SQLBindParameter";
}
if (stmt->parameters[ipar].EXEC_buffer) {
free(stmt->parameters[ipar].EXEC_buffer);
if (stmt->parameters[ipar].SQLType != SQL_LONGVARBINARY)
free(stmt->parameters[ipar].EXEC_buffer);
stmt->parameters[ipar].EXEC_buffer = NULL;
}
......
......@@ -327,7 +327,8 @@ int i;
}
if (self->parameters[i].EXEC_buffer) {
free(self->parameters[i].EXEC_buffer);
if (self->parameters[i].SQLType != SQL_LONGVARBINARY)
free(self->parameters[i].EXEC_buffer);
self->parameters[i].EXEC_buffer = NULL;
}
}
......@@ -875,7 +876,7 @@ QueryInfo qi;
*/
}
else {
self->errornumber = STMT_BAD_ERROR;
self->errornumber = STMT_EXEC_ERROR;
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