« Previous | Next » 

Revision 1e764d08

ID1e764d084aeb82a4c9c26c41521f5835179ec7c8
Parent c29e10c7
Child 90048d04

Added by Karsten Dambekalns almost 7 years ago

[BUGFIX] Use bin2hex in ObjectArray when using PostgreSQL

The ObjectArray type still uses serialize() to convert to the database
value, thus producing data that cannot be used as is for a BYTEA column.

With this change, the serialized string is run through bin2hex() when
writing to the database and through hex2bin on the way back, if the
system runs on PostgreSQL.

For PHP versions prior 5.4 a hex2bin() replacement is used.

Change-Id: Ice2e9fe754f095ce00f12b313526982bde1ed6ab
Releases: 2.3
Fixes: FLOW-132

  • added
  • modified
  • copied
  • renamed
  • deleted