Make this actually work.
authorJan Schneider <jan@horde.org>
Fri, 29 Jan 2010 14:45:24 +0000 (15:45 +0100)
committerJan Schneider <jan@horde.org>
Fri, 29 Jan 2010 15:13:06 +0000 (16:13 +0100)
horde/scripts/upgrades/2009-04-13_horde_pgsql_upgrade.sql

index 68f0d64..d4035e5 100644 (file)
@@ -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);