-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
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:
mysql-connector-java/src/main/java/com/mysql/jdbc/BlobFromLocator.java
Lines 154 to 155 in cc5922f
| this.blobColumnName = quotedId | |
| + this.creatorResultSet.getString(blobColumnIndex) + quotedId; |
This should become:
this.blobColumnName = quotedId
+ this.creatorResultSet.getMetaData().getColumnLabel(blobColumnIndex) + quotedId;Metadata
Metadata
Assignees
Labels
No labels