You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: