Skip to content

Commit

Permalink
Decode CLOB columns.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 22, 2014
1 parent ab75cfa commit 97088bc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions framework/Alarm/lib/Horde/Alarm/Sql.php
Expand Up @@ -120,6 +120,13 @@ protected function _global()
*/
protected function _getHash(array $alarm)
{

try {
$columns = $this->_db->columns($this->_params['table']);
} catch (Horde_Db_Exception $e) {
throw new Horde_Prefs_Exception($e);
}
$alarm['alarm_params'] = $columns['alarm_params']->binaryToString($alarm['alarm_params']);
$params = base64_decode($alarm['alarm_params']);
if (!strlen($params) && strlen($alarm['alarm_params'])) {
$params = $alarm['alarm_params'];
Expand Down
4 changes: 2 additions & 2 deletions framework/Alarm/package.xml
Expand Up @@ -21,7 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Fix compatibility with Oracle.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -860,7 +860,7 @@
<date>2013-10-21</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
*
* [jan] Fix compatibility with Oracle.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit 97088bc

Please sign in to comment.