Skip to content

BLOB operations in user defined prepared statements are not consistent with operations on entities #20

@leitaop

Description

@leitaop

When setting a prepared statement column the following is generally used:
if (o instanceof byte[])
{ ps.ps.setBytes(i, (byte[]) o); }
else
{ ps.ps.setObject(i, o); }
whereas when using entities, values of BLOB columns are always serialized (custom encoded starting in PDB 2.0.5). Therefore, if a BLOB value is updated using an user-defined prepared statement, the written value will not be the returned on subsequent reads. For example, if a byte[] containing a serialized value is written, the read value will not be the provided byte[], it will be the de-serialized object.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions