Skip to content

Retrieving blob value fails #3

@Daniels118

Description

@Daniels118

In the constructor of class com/mysql/jdbc/BlobFromLocator.java, ther is a field named blobColumnName which is computed the wrong way, that is, instead of being set to the actual column name, it is set with the field value. If the actual value contains special characters, it will break further steps.
This makes the blob unusable.

Here is the relevant code:

this.blobColumnName = quotedId
+ this.creatorResultSet.getString(blobColumnIndex) + quotedId;

This should become:

	this.blobColumnName = quotedId
			+ this.creatorResultSet.getMetaData().getColumnLabel(blobColumnIndex) + quotedId;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions