From: Jan Schneider Date: Fri, 29 Jan 2010 14:45:24 +0000 (+0100) Subject: Make this actually work. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=189bd65251fb62dab17d60786dbdf810fba55c1b;p=horde.git Make this actually work. --- diff --git a/horde/scripts/upgrades/2009-04-13_horde_pgsql_upgrade.sql b/horde/scripts/upgrades/2009-04-13_horde_pgsql_upgrade.sql index 68f0d646f..d4035e5e8 100644 --- a/horde/scripts/upgrades/2009-04-13_horde_pgsql_upgrade.sql +++ b/horde/scripts/upgrades/2009-04-13_horde_pgsql_upgrade.sql @@ -1,3 +1,3 @@ -- Replace 'UTF8' with the encoding used in your database. -- This script is tested with Postgres 8.3+. -ALTER TABLE horde_prefs ALTER COLUMN pref_value TYPE BYTEA USING encode(convert_to(pref_value, 'UTF8'), 'escape'); +ALTER TABLE horde_prefs ALTER COLUMN pref_value TYPE BYTEA USING CAST(ENCODE(CONVERT_TO(pref_value, 'UTF8'), 'escape') AS BYTEA);