projects
/
horde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
660bdee
)
Make this actually work.
author
Jan Schneider
<jan@horde.org>
Fri, 29 Jan 2010 14:45:24 +0000
(15:45 +0100)
committer
Jan 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
patch
|
blob
|
history
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
68f0d64
..
d4035e5
100644
(file)
--- 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
);