Skip to content

do not assume that the value is a blob type if it is bigger than 32kb - #54

Open
axjpc wants to merge 1 commit into
madorin:masterfrom
Vertec:do-not-assume-blob-type
Open

do not assume that the value is a blob type if it is bigger than 32kb#54
axjpc wants to merge 1 commit into
madorin:masterfrom
Vertec:do-not-assume-blob-type

Conversation

@axjpc

@axjpc axjpc commented Jul 7, 2021

Copy link
Copy Markdown

What I have:
I have a column defined as BLOB SUB_TYPE TEXT. The default charset of the database is UTF-8.

What I'm trying to do:
Persisting a string thats > 32kb in size.

What happens:
I get an error message Malformed string.

Why does it happen?
I think by setting the sSQLType to SQL_BLOB to string is not properly encoded and thus unable to be saved.
The limit of 32kb seems arbitrary and unnecessary, because we can persist strings of any length.
Removing those lines solves the problem on my end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant